volume/local fix file permissions

Signed-off-by: Sebastiaan van Stijn <github@gone.nl>
This commit is contained in:
Sebastiaan van Stijn 2019-08-05 17:49:50 +02:00
parent 4b13f69882
commit ad95c6315d
No known key found for this signature in database
GPG key ID: 76698F39D527CE8C

View file

@ -149,7 +149,7 @@ func TestCreate(t *testing.T) {
}
}
r, err = New(rootDir, idtools.Identity{UID: os.Geteuid(), GID: os.Getegid()})
_, err = New(rootDir, idtools.Identity{UID: os.Geteuid(), GID: os.Getegid()})
if err != nil {
t.Fatal(err)
}
@ -295,7 +295,7 @@ func TestRelaodNoOpts(t *testing.T) {
t.Fatal(err)
}
// make sure a file with `null` (.e.g. empty opts map from older daemon) is ok
if err := ioutil.WriteFile(filepath.Join(rootDir, "test2"), []byte("null"), 600); err != nil {
if err := ioutil.WriteFile(filepath.Join(rootDir, "test2"), []byte("null"), 0600); err != nil {
t.Fatal(err)
}
@ -303,7 +303,7 @@ func TestRelaodNoOpts(t *testing.T) {
t.Fatal(err)
}
// make sure an empty opts file doesn't break us too
if err := ioutil.WriteFile(filepath.Join(rootDir, "test3"), nil, 600); err != nil {
if err := ioutil.WriteFile(filepath.Join(rootDir, "test3"), nil, 0600); err != nil {
t.Fatal(err)
}