]> arthur.barton.de Git - bup.git/blobdiff - t/root-status
vfs2: add try_resolve() and use it in ls
[bup.git] / t / root-status
index 5024ed3afb29b1976c5dfc4635542895adf34ccf..4f21599f83aaacb98c83b8ccbb1d0b9989d2d0fb 100755 (executable)
@@ -5,9 +5,15 @@ exec "$bup_python" "$0" ${1+"$@"}
 """
 # end of bup preamble
 
+from sys import stderr
 import sys
 
+
 if sys.platform.startswith('cygwin'):
+    if sys.getwindowsversion()[0] > 5:
+        # Sounds like the situation is much more complicated here
+        print >> stderr, "can't detect root status for OS version > 5; assuming not root"
+        print 'none'
     import ctypes
     if ctypes.cdll.shell32.IsUserAnAdmin():
         print 'root'