summaryrefslogtreecommitdiff
path: root/daemon
diff options
context:
space:
mode:
authorSebastiaan van Stijn <github@gone.nl>2022-01-28 12:39:17 +0100
committerSebastiaan van Stijn <github@gone.nl>2022-02-08 13:38:29 +0100
commit878b9de9350159700b1fe02b7000613a9e9191ad (patch)
tree185dbff42621f0f949f04dbabf6d99f690b81b2e /daemon
parent606c29418a29c34d7bf5c530a13aa67a3a5688bd (diff)
downloaddocker-878b9de9350159700b1fe02b7000613a9e9191ad.tar.gz
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 <github@gone.nl> (cherry picked from commit f9fb5d4f25b8dd539e23e4a82ba2b7ae42677219) Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
Diffstat (limited to 'daemon')
-rw-r--r--daemon/graphdriver/fuse-overlayfs/fuseoverlayfs.go2
1 files changed, 1 insertions, 1 deletions
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
}