diff options
Diffstat (limited to 'rdiff-backup/src/globals.py')
-rw-r--r-- | rdiff-backup/src/globals.py | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/rdiff-backup/src/globals.py b/rdiff-backup/src/globals.py index 508d0ed..7d62733 100644 --- a/rdiff-backup/src/globals.py +++ b/rdiff-backup/src/globals.py @@ -35,8 +35,10 @@ class Globals: # If true, change the permissions of unwriteable mirror files # (such as directories) so that they can be written, and then - # change them back. - change_mirror_perms = 1 + # change them back. This defaults to 1 just in case the process + # is not running as root (root doesn't need to change + # permissions). + change_mirror_perms = (process_uid != 0) # If true, temporarily change permissions of unreadable files in # the source directory to make sure we can read all files. |