Fix var assignment

This commit is contained in:
Daniel Santos 2021-01-26 21:06:08 -07:00
parent 5a761bb7a4
commit 0aaaa9b470

View file

@ -100,7 +100,7 @@ func RunMount(option *MountOptions, umask os.FileMode) bool {
uid, gid := uint32(0), uint32(0) uid, gid := uint32(0), uint32(0)
mountMode := os.ModeDir | 0777 mountMode := os.ModeDir | 0777
if err == nil { if err == nil {
mountMode := os.ModeDir | os.FileMode(0777)&^umask mountMode = os.ModeDir | os.FileMode(0777)&^umask
uid, gid = util.GetFileUidGid(fileInfo) uid, gid = util.GetFileUidGid(fileInfo)
fmt.Printf("mount point owner uid=%d gid=%d mode=%s\n", uid, gid, fileInfo.Mode()) fmt.Printf("mount point owner uid=%d gid=%d mode=%s\n", uid, gid, fileInfo.Mode())
} else { } else {