summaryrefslogtreecommitdiff
path: root/internal/syscallcompat/sys_linux.go
diff options
context:
space:
mode:
authorJakob Unterwurzacher2021-06-05 15:06:30 +0200
committerJakob Unterwurzacher2021-06-05 15:06:30 +0200
commite48f2377ec46f247d4db04cf8031702d0684c086 (patch)
treee73aaa369c4549c5289e4dcf099cce19fca0f64b /internal/syscallcompat/sys_linux.go
parentc0e75302166c9a166526586690086dcd16eff2c2 (diff)
syscallcompat: drop obsolete wrappers
These are now available cross-platform in the unix package.
Diffstat (limited to 'internal/syscallcompat/sys_linux.go')
-rw-r--r--internal/syscallcompat/sys_linux.go4
1 files changed, 2 insertions, 2 deletions
diff --git a/internal/syscallcompat/sys_linux.go b/internal/syscallcompat/sys_linux.go
index 45c18d2..9672be7 100644
--- a/internal/syscallcompat/sys_linux.go
+++ b/internal/syscallcompat/sys_linux.go
@@ -204,7 +204,7 @@ func FchmodatNofollow(dirfd int, path string, mode uint32) (err error) {
// See OpenatUser() for how this works.
func SymlinkatUser(oldpath string, newdirfd int, newpath string, context *fuse.Context) (err error) {
f := func() (int, error) {
- err := Symlinkat(oldpath, newdirfd, newpath)
+ err := unix.Symlinkat(oldpath, newdirfd, newpath)
return -1, err
}
_, err = asUser(f, context)
@@ -217,7 +217,7 @@ func SymlinkatUser(oldpath string, newdirfd int, newpath string, context *fuse.C
// See OpenatUser() for how this works.
func MkdiratUser(dirfd int, path string, mode uint32, context *fuse.Context) (err error) {
f := func() (int, error) {
- err := Mkdirat(dirfd, path, mode)
+ err := unix.Mkdirat(dirfd, path, mode)
return -1, err
}
_, err = asUser(f, context)