diff --git a/src/sbin/bcfg2-info b/src/sbin/bcfg2-info index 133e1ccb35..a8aad3730f 100755 --- a/src/sbin/bcfg2-info +++ b/src/sbin/bcfg2-info @@ -10,6 +10,7 @@ import fnmatch import logging import lxml.etree import traceback +import stat from code import InteractiveConsole import Bcfg2.Logger import Bcfg2.Options @@ -280,6 +281,9 @@ Bcfg2 client itself.""") for entry in struct: if entry.tag == 'Path': entry.set('name', odir + '/' + entry.get('name')) + if entry.get('mode') != None: + entry.set('mode', \ + oct(int(entry.get('mode'), 8)|stat.S_IWUSR)) posix = Bcfg2.Client.Tools.POSIX.POSIX(MockLog(), self.setup,