Skip to content

Commit

Permalink
Pass FUSE -o group_id from setgid (related to #73)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitalif committed Sep 3, 2024
1 parent 8352192 commit 208980a
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions internal/goofys_fuse.go
Original file line number Diff line number Diff line change
Expand Up @@ -888,6 +888,11 @@ func convertFuseOptions(flags *cfg.FlagStorage) map[string]string {
optMap["user_id"] = fmt.Sprintf("%v", flags.Setuid)
}
}
if flags.Setgid > 0 {
if _, ok := optMap["group_id"]; !ok {
optMap["group_id"] = fmt.Sprintf("%v", flags.Setgid)
}
}
return optMap
}

Expand Down

0 comments on commit 208980a

Please sign in to comment.