Commit 4cf10d63 authored by bescoto's avatar bescoto

--windows-mode now disables ownership switching


git-svn-id: http://svn.savannah.nongnu.org/svn/rdiff-backup@309 2b77aa54-bcbc-44c9-a7ec-4f6cf2b41109
parent b5c8892c
......@@ -6,6 +6,9 @@ Kempe for report.)
Added --list-at-time option at request of Farkas Levente.
Don't change ownership if --windows-mode option is given. (Bug report
by Keith Edmunds.)
New in v0.11.4 (2003/03/15)
---------------------------
......
......@@ -148,6 +148,7 @@ def parse_cmdlineoptions(arglist):
Globals.set('chars_to_quote', "A-Z:")
Globals.set('quoting_enabled', 1)
Globals.set('preserve_hardlinks', 0)
Globals.set('change_ownership', 0)
else: Log.FatalError("Unknown option %s" % opt)
def isincfilename(path):
......
......@@ -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"""
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment