summaryrefslogtreecommitdiff
path: root/rdiff-backup/rdiff_backup/SetConnections.py
diff options
context:
space:
mode:
authorbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-03-21 17:48:06 +0000
committerbescoto <bescoto@2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109>2003-03-21 17:48:06 +0000
commitf0f77945de9c8ac19dfad1d61d018ffc4078131a (patch)
tree21e915874bf6a1daf184798e3d7d3651881fe447 /rdiff-backup/rdiff_backup/SetConnections.py
parent703a2c2f87bf3cb79344b58752bb82e33e746b40 (diff)
downloadrdiff-backup-f0f77945de9c8ac19dfad1d61d018ffc4078131a.tar.gz
--windows-mode now disables ownership switching
git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup/trunk@309 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
Diffstat (limited to 'rdiff-backup/rdiff_backup/SetConnections.py')
-rw-r--r--rdiff-backup/rdiff_backup/SetConnections.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/rdiff-backup/rdiff_backup/SetConnections.py b/rdiff-backup/rdiff_backup/SetConnections.py
index 62cff00..e5d081e 100644
--- a/rdiff-backup/rdiff_backup/SetConnections.py
+++ b/rdiff-backup/rdiff_backup/SetConnections.py
@@ -203,7 +203,8 @@ def BackupInitConnections(reading_conn, writing_conn):
writing_conn.Globals.set("isbackup_writer", 1)
UpdateGlobal("backup_reader", reading_conn)
UpdateGlobal("backup_writer", writing_conn)
- if writing_conn.os.getuid() == 0: UpdateGlobal('change_ownership', 1)
+ if writing_conn.os.getuid() == 0 and Globals.change_ownership != 0:
+ UpdateGlobal('change_ownership', 1)
def CloseConnections():
"""Close all connections. Run by client"""