]> arthur.barton.de Git - bup.git/commit
is_superuser: test for group 544 or 0 on cygwin
authorRob Browning <rlb@defaultvalue.org>
Sat, 31 Mar 2018 16:53:24 +0000 (11:53 -0500)
committerRob Browning <rlb@defaultvalue.org>
Sat, 31 Mar 2018 16:53:24 +0000 (11:53 -0500)
commitc564e933748d2cee514a82c1676a392b64916d05
tree67de47f5652443e8ae15a60f9a999be9deac375e
parenta75a4b60adcb74ecd4f50842be1f9aa975452af5
is_superuser: test for group 544 or 0 on cygwin

This appears to be the appropriate way to check for admin status in
cygwin right now: https://cygwin.com/ml/cygwin/2015-02/msg00057.html

Thanks to at least Andrew Skretvedt, Ruvim Pinka, renpj, and Iar De
for reporting the problem, Ruvim Pinka, Paul Kronenwetter, and renpj
for proposing earlier solutions, and Ben Kelly and Johannes Berg for
helping test this approach.

Signed-off-by: Rob Browning <rlb@defaultvalue.org>
lib/bup/helpers.py
t/root-status