From: Rob Browning Date: Wed, 22 Sep 2010 01:34:53 +0000 (-0500) Subject: Correctly respect restore_numeric_ids in Metadata _apply_common_rec(). X-Git-Tag: bup-0.25-rc1~68^2~54 X-Git-Url: https://arthur.barton.de/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=710f075ea521d16ec5f95f0218d4caa5a7f1d691;p=bup.git Correctly respect restore_numeric_ids in Metadata _apply_common_rec(). Signed-off-by: Rob Browning --- diff --git a/lib/bup/metadata.py b/lib/bup/metadata.py index 5e88715..3a960d1 100644 --- a/lib/bup/metadata.py +++ b/lib/bup/metadata.py @@ -230,7 +230,7 @@ class Metadata: uid = self.uid gid = self.gid - if(restore_numeric_ids): + if not restore_numeric_ids: uid = pwd.getpwnam(self.user)[2] gid = grp.getgrnam(self.group)[2] os.lchown(path, uid, gid)