From 503825fd5f9caf68a4ee03d0f3343e506243e066 Mon Sep 17 00:00:00 2001 From: Aaron Jacobs Date: Fri, 24 Jul 2015 11:49:37 +1000 Subject: [PATCH] Fixed a conversion bug. --- fuseops/convert.go | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fuseops/convert.go b/fuseops/convert.go index 3ce0c99..87baa23 100644 --- a/fuseops/convert.go +++ b/fuseops/convert.go @@ -439,7 +439,7 @@ func convertAttributes( out.Gid = in.Gid // Set the mode. - out.Mode = uint32(in.Mode) & 077 + out.Mode = uint32(in.Mode) & 0777 switch { default: out.Mode |= syscall.S_IFREG