summaryrefslogtreecommitdiff
path: root/nss
diff options
context:
space:
mode:
authorDavid Tardon <dtardon@redhat.com>2013-03-27 11:34:08 +0100
committerDavid Tardon <dtardon@redhat.com>2013-03-27 17:08:09 +0100
commit3a7d870d721d39c239ccc9d7873f34e04c7914d3 (patch)
treeb80088fcbe2e4f2579f136ade90ec731b5d80217 /nss
parent1ef1695b6b7a2981220c9b7c3c4329bf983a5e54 (diff)
file modes are octal
Change-Id: I5aa118db8100be8945425ad195bfb72819953c73
Diffstat (limited to 'nss')
-rw-r--r--nss/nsinstall.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/nss/nsinstall.py b/nss/nsinstall.py
index 67d696b59706..7be419730e74 100644
--- a/nss/nsinstall.py
+++ b/nss/nsinstall.py
@@ -86,11 +86,11 @@ def nsinstall(argv):
if options.m:
# mode is specified
try:
+ options.m = int(options.m, 8)
# I have no idea why nss insists on using this mode for installed headers.
# It causes problems with updating the files during a rebuild.
- if options.m == 444:
- options.m = 644
- options.m = int(options.m)
+ if options.m == 0444:
+ options.m = 0644
except:
sys.stderr.write('nsinstall: ' + options.m + ' is not a valid mode\n')
return 1
@@ -147,7 +147,7 @@ def nsinstall(argv):
shutil.copy2(srcpath, targetpath)
else:
if os.path.exists(targetpath):
- os.chmod(targetpath, 755)
+ os.chmod(targetpath, 0755)
os.remove(targetpath)
shutil.copy(srcpath, targetpath)