summaryrefslogtreecommitdiff
path: root/src/leap/platform_init
diff options
context:
space:
mode:
authorKali Kaneko <kali@leap.se>2013-06-23 23:54:22 +0900
committerKali Kaneko <kali@leap.se>2013-06-23 23:54:22 +0900
commit4a0536e5831eeac539c1b746932e60d4dd5e9591 (patch)
tree16c4590c7bfce754c31a1fa87326c0b29baf5a11 /src/leap/platform_init
parent53668de6f4ced844b10fc34fbc5ba77b00d54825 (diff)
parentb265380ebedb1603933251a6e8fd0e7c850eba5a (diff)
Merge remote-tracking branch 'chiiph/bug/properly_check_permissions' into develop
Diffstat (limited to 'src/leap/platform_init')
-rw-r--r--src/leap/platform_init/initializers.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/leap/platform_init/initializers.py b/src/leap/platform_init/initializers.py
index 3374e32e..5345f11a 100644
--- a/src/leap/platform_init/initializers.py
+++ b/src/leap/platform_init/initializers.py
@@ -195,7 +195,7 @@ def WindowsInitializer():
dev_installer = os.path.join(driver_path,
"devcon.exe")
if os.path.isfile(dev_installer) and \
- os.access(dev_installer, os.X_OK):
+ stat.S_IXUSR & os.stat(dev_installer)[stat.ST_MODE] != 0:
inf_path = os.path.join(driver_path,
"OemWin2k.inf")
cmd = [dev_installer, "install", inf_path, "tap0901"]