From a0db19b9ad7def33eacdfc23d462604dce3af3bb Mon Sep 17 00:00:00 2001 From: Ophestra Umiker Date: Mon, 14 Oct 2024 13:47:50 +0900 Subject: helper/bwrap: format mode in octal Bubblewrap expects an octal representation of mode. Signed-off-by: Ophestra Umiker --- helper/bwrap/config.pair.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'helper/bwrap/config.pair.go') 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 -- cgit v1.3.1