]> arthur.barton.de Git - bup.git/commit - lib/bup/helpers.py
Add is_superuser() helper function
authorAneurin Price <aneurin.price@gmail.com>
Fri, 13 May 2011 13:19:42 +0000 (14:19 +0100)
committerAvery Pennarun <apenwarr@gmail.com>
Sun, 15 May 2011 19:29:55 +0000 (15:29 -0400)
commit9a733b8cba5c27df0f5e844076ac1b3efd00ea68
tree695a00159a58435906fb9eaa76c017ddbc6660cb
parent29333a35c595a4acb531da29b1711dd3dd294f61
Add is_superuser() helper function

This checks for an effective UID of 0 on most platforms, or the result
of the IsUserAnAdmin shell32 function on Cygwin.

Signed-off-by: Aneurin Price <aneurin.price@gmail.com>
lib/bup/helpers.py