summaryrefslogtreecommitdiff
path: root/internal/syscallcompat
diff options
context:
space:
mode:
authorJakob Unterwurzacher2019-01-14 21:57:24 +0100
committerJakob Unterwurzacher2019-01-14 21:57:24 +0100
commit6542ddd2f9416e73f4ba18d9451601ea35af7ff3 (patch)
treee2834aed9794a1943c4188932c1b3e2883793565 /internal/syscallcompat
parenta7d59032d3790e117a48be6be1fb3a968266093b (diff)
syscallcompat: fix FchmodatNofollow tests
FchmodatNofollow dropped the flags parameter.
Diffstat (limited to 'internal/syscallcompat')
-rw-r--r--internal/syscallcompat/sys_common_test.go6
1 files changed, 3 insertions, 3 deletions
diff --git a/internal/syscallcompat/sys_common_test.go b/internal/syscallcompat/sys_common_test.go
index 3729111..3e2d80e 100644
--- a/internal/syscallcompat/sys_common_test.go
+++ b/internal/syscallcompat/sys_common_test.go
@@ -175,7 +175,7 @@ func TestFchmodat(t *testing.T) {
defer syscall.Close(dirfd)
// Check that chmod on a regular file works ok
- err = FchmodatNofollow(dirfd, regular, 0111, 0)
+ err = FchmodatNofollow(dirfd, regular, 0111)
if err != nil {
t.Fatal(err)
}
@@ -185,7 +185,7 @@ func TestFchmodat(t *testing.T) {
if st.Mode != 0111 {
t.Errorf("wrong mode: %#0o", st.Mode)
}
- err = FchmodatNofollow(dirfd, regular, 0000, 0)
+ err = FchmodatNofollow(dirfd, regular, 0000)
if err != nil {
t.Error(err)
}
@@ -196,7 +196,7 @@ func TestFchmodat(t *testing.T) {
}
// Check what happens on a symlink
- err = FchmodatNofollow(dirfd, symlink, 0333, 0)
+ err = FchmodatNofollow(dirfd, symlink, 0333)
if err == nil {
syscall.Lstat(tmpDir+"/"+symlink, &st)
st.Mode &= 0777