Kaydet (Commit) 94e50003 authored tarafından Michael W. Hudson's avatar Michael W. Hudson

backport akuchling's checkin of

    revision 1.11 of install_scripts.py

Restrict the mode to the lowest four octal positions; higher positions
   contain the type of the file (regular file, socket, link, &c.).
   This means that install_scripts will now print
   "changing mode of <file> to 775" instead of "... to 100775".

2.2 bugfix candidate, I suppose, though this isn't actually fixing a bug.

This patch was applied by an alarmingly automated system -- I hope it
worked...
üst 2d677d29
......@@ -50,7 +50,7 @@ class install_scripts (Command):
if self.dry_run:
self.announce("changing mode of %s" % file)
else:
mode = (os.stat(file)[ST_MODE]) | 0111
mode = ((os.stat(file)[ST_MODE]) | 0111) & 07777
self.announce("changing mode of %s to %o" % (file, mode))
os.chmod(file, mode)
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment