]> arthur.barton.de Git - bup.git/commitdiff
Print the metadata mode in octal, not hex
authorRob Browning <rlb@defaultvalue.org>
Sun, 8 Oct 2017 15:13:06 +0000 (10:13 -0500)
committerRob Browning <rlb@defaultvalue.org>
Tue, 10 Oct 2017 00:31:26 +0000 (19:31 -0500)
Signed-off-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/metadata.py

index b84f6a14029d2df5d5b1892a66847b8326093fac..8ceebdcc09ad8a4e14eed6b57714795d4722e2c0 100644 (file)
@@ -765,7 +765,7 @@ class Metadata:
             result += ' path:' + repr(self.path)
         if self.mode is not None:
             result += ' mode:' + repr(xstat.mode_str(self.mode)
-                                      + '(%s)' % hex(self.mode))
+                                      + '(%s)' % oct(self.mode))
         if self.uid is not None:
             result += ' uid:' + str(self.uid)
         if self.gid is not None: