fusefrontend: don't downgrade type needlessly
This commit is contained in:
parent
a77d31ca82
commit
bb7f919674
|
@ -164,7 +164,7 @@ func (fs *FS) Open(path string, flags uint32, context *fuse.Context) (fuseFile n
|
||||||
// problem if the file permissions do not allow reading (i.e. 0200 permissions).
|
// problem if the file permissions do not allow reading (i.e. 0200 permissions).
|
||||||
// This function works around that problem by chmod'ing the file, obtaining a fd,
|
// This function works around that problem by chmod'ing the file, obtaining a fd,
|
||||||
// and chmod'ing it back.
|
// and chmod'ing it back.
|
||||||
func (fs *FS) openWriteOnlyFile(dirfd int, cName string, newFlags int) (fuseFile nodefs.File, status fuse.Status) {
|
func (fs *FS) openWriteOnlyFile(dirfd int, cName string, newFlags int) (*File, fuse.Status) {
|
||||||
woFd, err := syscallcompat.Openat(dirfd, cName, syscall.O_WRONLY|syscall.O_NOFOLLOW, 0)
|
woFd, err := syscallcompat.Openat(dirfd, cName, syscall.O_WRONLY|syscall.O_NOFOLLOW, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return nil, fuse.ToStatus(err)
|
return nil, fuse.ToStatus(err)
|
||||||
|
|
Loading…
Reference in New Issue