]> arthur.barton.de Git - bup.git/blob - t/root-status
do_bloom(): remove unused "count" variable
[bup.git] / t / root-status
1 #!/usr/bin/env python
2
3 import sys
4
5 if sys.platform.startswith('cygwin'):
6     import ctypes
7     if ctypes.cdll.shell32.IsUserAnAdmin():
8         print 'root'
9     else:
10         print 'none'
11 else:
12     import os
13     if os.environ.get('FAKEROOTKEY'):
14         print 'fake'
15     else:
16         if os.geteuid() == 0:
17             print 'root'
18         else:
19             print 'none'