mirror of
https://github.com/rclone/rclone.git
synced 2025-02-21 08:49:39 +08:00
Add -o uid=-1 -o gid=-1 for Windows/WinFsp
This commit is contained in:
parent
31f76aa464
commit
b4466bd9b1
@ -179,6 +179,13 @@ func mountOptions(device string, mountpoint string) (options []string) {
|
||||
options = append(options, "-o", "noapplexattr")
|
||||
}
|
||||
|
||||
// Windows options
|
||||
if runtime.GOOS == "windows" {
|
||||
// These cause WinFsp to mean the current user
|
||||
options = append(options, "-o", "uid=-1")
|
||||
options = append(options, "-o", "gid=-1")
|
||||
}
|
||||
|
||||
if allowNonEmpty {
|
||||
options = append(options, "-o", "nonempty")
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user