diff options
| author | Ophestra Umiker <cat@ophivana.moe> | 2024-10-14 13:47:50 +0900 |
|---|---|---|
| committer | Ophestra Umiker <cat@ophivana.moe> | 2024-10-14 13:47:50 +0900 |
| commit | a0db19b9ad7def33eacdfc23d462604dce3af3bb (patch) | |
| tree | 279112c27d65725a2f98f31b68d03214d4ba7b9b /helper/bwrap/config.pair.go | |
| parent | aaed5080f4dc691c790c195ad070167060a6eec1 (diff) | |
helper/bwrap: format mode in octal
Bubblewrap expects an octal representation of mode.
Signed-off-by: Ophestra Umiker <cat@ophivana.moe>
Diffstat (limited to 'helper/bwrap/config.pair.go')
| -rw-r--r-- | helper/bwrap/config.pair.go | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/helper/bwrap/config.pair.go b/helper/bwrap/config.pair.go index b0b1001b..049edafe 100644 --- a/helper/bwrap/config.pair.go +++ b/helper/bwrap/config.pair.go @@ -47,7 +47,7 @@ func (c *Config) pairArgs() (n [pairC][][2]string) { n[Chmod] = make([][2]string, 0, len(c.Chmod)) for path, octal := range c.Chmod { - n[Chmod] = append(n[Chmod], [2]string{strconv.Itoa(int(octal)), path}) + n[Chmod] = append(n[Chmod], [2]string{strconv.FormatInt(int64(octal), 8), path}) } return |
