diff options
author | Sebastian Lackner | 2017-11-28 00:54:38 +0100 |
---|---|---|
committer | rfjakob | 2017-11-28 09:28:06 +0100 |
commit | 5a56810603ff9608c98d71cbfb8a6454da4c2261 (patch) | |
tree | 1011a0161c3df932cfd072e3c7e19d72e983724d /internal/fusefrontend/fs.go | |
parent | 295c4c2b852c83ff265466cdeba3cbbc05820e4a (diff) |
fusefrontend: Use the Symlinkat syscall for longname handling
Diffstat (limited to 'internal/fusefrontend/fs.go')
-rw-r--r-- | internal/fusefrontend/fs.go | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/internal/fusefrontend/fs.go b/internal/fusefrontend/fs.go index bb2f192..60d43f0 100644 --- a/internal/fusefrontend/fs.go +++ b/internal/fusefrontend/fs.go @@ -448,8 +448,7 @@ func (fs *FS) Symlink(target string, linkName string, context *fuse.Context) (co return fuse.ToStatus(err) } // Create "gocryptfs.longfile." symlink - // TODO use syscall.Symlinkat once it is available in Go - err = syscall.Symlink(cTarget, cPath) + err = syscallcompat.Symlinkat(cTarget, int(dirfd.Fd()), cName) if err != nil { nametransform.DeleteLongName(dirfd, cName) } |