[Updated] D11906: hghave: fix the check for suid on platforms lacking support
mharbison72 (Matt Harbison)
phabricator at mercurial-scm.org
Mon Dec 13 11:17:28 UTC 2021
Closed by commit rHGf21e7748c257: hghave: fix the check for suid on platforms lacking support (authored by mharbison72).
This revision was automatically updated to reflect the committed changes.
REPOSITORY
rHG Mercurial
CHANGES SINCE LAST UPDATE
https://phab.mercurial-scm.org/D11906?vs=31441&id=31443
CHANGES SINCE LAST ACTION
https://phab.mercurial-scm.org/D11906/new/
REVISION DETAIL
https://phab.mercurial-scm.org/D11906
AFFECTED FILES
tests/hghave.py
CHANGE DETAILS
diff --git a/tests/hghave.py b/tests/hghave.py
--- a/tests/hghave.py
+++ b/tests/hghave.py
@@ -266,7 +266,10 @@
@check("suidbit", "setuid and setgid bit")
def has_suidbit():
- if getattr(os, "statvfs", None) is None or getattr(os, "ST_NOSUID") is None:
+ if (
+ getattr(os, "statvfs", None) is None
+ or getattr(os, "ST_NOSUID", None) is None
+ ):
return False
return bool(os.statvfs('.').f_flag & os.ST_NOSUID)
To: mharbison72, #hg-reviewers, Alphare
Cc: mercurial-patches
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.mercurial-scm.org/pipermail/mercurial-patches/attachments/20211213/585f0daf/attachment-0002.html>
More information about the Mercurial-patches
mailing list