mirror of
https://github.com/octoleo/syncthing.git
synced 2024-11-09 23:00:58 +00:00
* Platform data (ownership, xattrs, etc.) is now set correctly for newly-received folders, even if the received folder has the NoPermissions flag. * Call setPlatformData on receivers that have ignorePerms set to true.
This commit is contained in:
parent
0b3a101ccd
commit
405cdedcd3
@ -622,7 +622,7 @@ func (f *sendReceiveFolder) handleDir(file protocol.FileInfo, snap *db.Snapshot,
|
||||
// not MkdirAll because the parent should already exist.
|
||||
mkdir := func(path string) error {
|
||||
err = f.mtimefs.Mkdir(path, mode)
|
||||
if err != nil || f.IgnorePerms {
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
@ -631,7 +631,7 @@ func (f *sendReceiveFolder) handleDir(file protocol.FileInfo, snap *db.Snapshot,
|
||||
return err
|
||||
}
|
||||
|
||||
if file.NoPermissions {
|
||||
if f.IgnorePerms || file.NoPermissions {
|
||||
return nil
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user