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