From 878b9de9350159700b1fe02b7000613a9e9191ad Mon Sep 17 00:00:00 2001 From: Sebastiaan van Stijn Date: Fri, 28 Jan 2022 12:39:17 +0100 Subject: [PATCH] daemon/graphdriver/fuse-overlayfs: Init(): fix directory permissions (staticcheck) daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go:101:63: SA9002: file mode '700' evaluates to 01274; did you mean '0700'? (staticcheck) if err := idtools.MkdirAllAndChown(path.Join(home, linkDir), 700, currentID); err != nil { ^ Signed-off-by: Sebastiaan van Stijn (cherry picked from commit f9fb5d4f25b8dd539e23e4a82ba2b7ae42677219) Signed-off-by: Sebastiaan van Stijn --- daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go b/daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go index 1bf30f4298..8aab5cf922 100644 --- a/daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go +++ b/daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go @@ -98,7 +98,7 @@ func Init(home string, options []string, uidMaps, gidMaps []idtools.IDMap) (grap if err := idtools.MkdirAllAndChown(home, 0710, dirID); err != nil { return nil, err } - if err := idtools.MkdirAllAndChown(path.Join(home, linkDir), 700, currentID); err != nil { + if err := idtools.MkdirAllAndChown(path.Join(home, linkDir), 0700, currentID); err != nil { return nil, err }