##// END OF EJS Templates
hghave: fix the check for suid on platforms lacking support...
Matt Harbison -
r49281:f21e7748 stable
parent child Browse files
Show More
@@ -266,7 +266,10 b' def has_executablebit():'
266 266
267 267 @check("suidbit", "setuid and setgid bit")
268 268 def has_suidbit():
269 if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None:
269 if (
270 getattr(os, "statvfs", None) is None
271 or getattr(os, "ST_NOSUID", None) is None
272 ):
270 273 return False
271 274 return bool(os.statvfs('.').f_flag & os.ST_NOSUID)
272 275
General Comments 0
You need to be logged in to leave comments. Login now