Show More
@@ -264,6 +264,13 b' def has_executablebit():' | |||
|
264 | 264 | return not (new_file_has_exec or exec_flags_cannot_flip) |
|
265 | 265 | |
|
266 | 266 | |
|
267 | @check("suidbit", "setuid and setgid bit") | |
|
268 | def has_suidbit(): | |
|
269 | if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None: | |
|
270 | return False | |
|
271 | return bool(os.statvfs('.').f_flag & os.ST_NOSUID) | |
|
272 | ||
|
273 | ||
|
267 | 274 | @check("icasefs", "case insensitive file system") |
|
268 | 275 | def has_icasefs(): |
|
269 | 276 | # Stolen from mercurial.util |
@@ -33,6 +33,8 b'' | |||
|
33 | 33 | |
|
34 | 34 | $ chmod -R u+w master/.hg/remotefilelogcache |
|
35 | 35 | |
|
36 | #if suidbit | |
|
37 | ||
|
36 | 38 | # Test setting up shared cache with the right permissions |
|
37 | 39 | # (this is hard to test in a cross platform way, so we just make sure nothing |
|
38 | 40 | # crashes) |
@@ -44,3 +46,5 b'' | |||
|
44 | 46 | 1 files fetched over 1 fetches - (1 misses, 0.00% hit ratio) over * (glob) |
|
45 | 47 | $ ls -ld $CACHEDIR/11 |
|
46 | 48 | drwxrws* $TESTTMP/hgcache/11 (glob) |
|
49 | ||
|
50 | #endif |
General Comments 0
You need to be logged in to leave comments.
Login now