helper/bwrap: format mode in octal
Bubblewrap expects an octal representation of mode. Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
This commit is contained in:
@@ -259,7 +259,7 @@ func (p PermConfig[T]) Value(arg string) (args []string) {
|
||||
// max possible size
|
||||
if p.Mode != nil {
|
||||
args = make([]string, 0, 6)
|
||||
args = append(args, "--perms", strconv.Itoa(int(*p.Mode)))
|
||||
args = append(args, "--perms", strconv.FormatInt(int64(*p.Mode), 8))
|
||||
} else {
|
||||
args = make([]string, 0, 4)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user