##// END OF EJS Templates
set_exec: do not chmod a symlink
Steve Borho -
r5347:1df76921 default
parent child Browse files
Show More
@@ -14,7 +14,7 b' platform-specific details from the core.'
14 14
15 15 from i18n import _
16 16 import cStringIO, errno, getpass, popen2, re, shutil, sys, tempfile
17 import os, threading, time, calendar, ConfigParser, locale, glob
17 import os, stat, threading, time, calendar, ConfigParser, locale, glob
18 18
19 19 try:
20 20 set = set
@@ -1047,7 +1047,7 b' else:'
1047 1047
1048 1048 def set_exec(f, mode):
1049 1049 s = os.lstat(f).st_mode
1050 if (s & 0100 != 0) == mode:
1050 if stat.S_ISLNK(s) or (s & 0100 != 0) == mode:
1051 1051 return
1052 1052 if mode:
1053 1053 # Turn on +x for every +r bit when making a file executable
General Comments 0
You need to be logged in to leave comments. Login now