Commit 7581e55e authored by Jondy Zhao's avatar Jondy Zhao Committed by Marco Mariani

Do not check root by uid in the cygwin when run slapformat

parent 06ebfdb7
...@@ -1204,7 +1204,9 @@ class FormatConfig(object): ...@@ -1204,7 +1204,9 @@ class FormatConfig(object):
self.checkRequiredBinary(['brctl']) self.checkRequiredBinary(['brctl'])
# Check if root is needed # Check if root is needed
if (self.alter_network or self.alter_user) and not self.dry_run: if sys.platform == 'cygwin':
root_needed = False
elif (self.alter_network or self.alter_user) and not self.dry_run:
root_needed = True root_needed = True
else: else:
root_needed = False root_needed = False
......
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