summaryrefslogtreecommitdiff
path: root/source4/scripting/bin
diff options
context:
space:
mode:
authorJelmer Vernooij <jelmer@samba.org>2012-02-27 02:46:31 +0100
committerJelmer Vernooij <jelmer@samba.org>2012-02-27 03:52:05 +0100
commit8008228b940bd8c28a7ae8ee1c2568cb2127f1d1 (patch)
tree07aa4d397f5e1d398bd5355bbfe60dc13a6062d5 /source4/scripting/bin
parent2c9ff8a4d7d9217d69a7c4abdd4b776d138f9951 (diff)
downloadsamba-8008228b940bd8c28a7ae8ee1c2568cb2127f1d1.tar.gz
samba-8008228b940bd8c28a7ae8ee1c2568cb2127f1d1.tar.bz2
samba-8008228b940bd8c28a7ae8ee1c2568cb2127f1d1.zip
samba.xattr: Massively simplify copytree_with_xattrs.
Diffstat (limited to 'source4/scripting/bin')
-rwxr-xr-xsource4/scripting/bin/upgradeprovision2
1 files changed, 1 insertions, 1 deletions
diff --git a/source4/scripting/bin/upgradeprovision b/source4/scripting/bin/upgradeprovision
index 8066ac38d4..7003717b4e 100755
--- a/source4/scripting/bin/upgradeprovision
+++ b/source4/scripting/bin/upgradeprovision
@@ -1471,7 +1471,7 @@ def backup_provision(paths, dir):
:param paths: Paths to different objects
:param dir: Directory where to store the backup
"""
- if paths.sysvol is not None:
+ if paths.sysvol:
copytree_with_xattrs(paths.sysvol, os.path.join(dir, "sysvol"))
shutil.copy2(paths.samdb, dir)
shutil.copy2(paths.secrets, dir)