Commit 09495a5c authored by Marco Mariani's avatar Marco Mariani

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

This reverts commit 7581e55e.
parent db8eadd0
...@@ -1204,9 +1204,7 @@ class FormatConfig(object): ...@@ -1204,9 +1204,7 @@ class FormatConfig(object):
self.checkRequiredBinary(['brctl']) self.checkRequiredBinary(['brctl'])
# Check if root is needed # Check if root is needed
if sys.platform == 'cygwin': if (self.alter_network or self.alter_user) and not self.dry_run:
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