diff options
| author | Ophestra <cat@gensokyo.uk> | 2025-03-25 19:49:51 +0900 |
|---|---|---|
| committer | Ophestra <cat@gensokyo.uk> | 2025-03-25 19:49:51 +0900 |
| commit | 971c79bb80e2dc88421f047e82556a39ef063fbf (patch) | |
| tree | 327af2fde48d76768ae445910c3b2de526047036 /sandbox/init.go | |
| parent | f86d8682749dda2d0f6dc62d493389a5e0c8d88d (diff) | |
sandbox: remove hardcoded parent perm
Signed-off-by: Ophestra <cat@gensokyo.uk>
Diffstat (limited to 'sandbox/init.go')
| -rw-r--r-- | sandbox/init.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/sandbox/init.go b/sandbox/init.go index 8c2918cb..11167679 100644 --- a/sandbox/init.go +++ b/sandbox/init.go @@ -68,6 +68,9 @@ func Init(prepare func(prefix string), setVerbose func(verbose bool)) { if params.Ops == nil { log.Fatal("invalid setup parameters") } + if params.ParentPerm == 0 { + params.ParentPerm = 0755 + } setVerbose(params.Verbose) msg.Verbose("received setup parameters") |
