bareos: bareos-17.2 1b5ff848
|arogge||arogge||bareos-17.2||2019-12-17 17:25:49||bareos-17.2 f17ed9ef||Pending|
|Affected Issues||0001162: When restoring files without directories, the permissions of the immediate parent directory are wrong|
|Changeset||findlib: parent dirs should have consistent mode
Previously when creating parent directories Bareos handled the deepest
parent directory special and set permissions on it.
This surfaced when selecting only files, but not directories to restore.
In that case the directory that contains the files got a mode that was
derived from the file mode of the file being restored when the parent
directory was created.
While this in itself is already inconsistent, the effective mode was
also calculated by adding S_IWUSR and S_IXUSR which did not take group
or other in account.
This patch now makes sure that no permission on parent directories is
set explicitly, so you just get what the effective uid, gid and umask
(cherry picked from commit 705860721722284540ef8d74461c5a7b772c6da1)
|mod - src/findlib/mkpath.c||Diff File|