From 20592f72c0b615d4d246f54a77504bb509881e79 Mon Sep 17 00:00:00 2001 From: Jeremy Date: Mon, 8 Dec 2014 14:54:06 -0700 Subject: [PATCH] Fixes UID bit test. --- gns3server/modules/attic.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gns3server/modules/attic.py b/gns3server/modules/attic.py index cc1bc1a6..59665dbe 100644 --- a/gns3server/modules/attic.py +++ b/gns3server/modules/attic.py @@ -129,8 +129,8 @@ def has_privileged_access(executable): if os.geteuid() == 0: # we are root, so we should have privileged access. return True - if os.stat(executable).st_mode & stat.S_ISVTX == stat.S_ISVTX: - # the executable has a sticky bit. + if os.stat(executable).st_mode & stat.S_ISUID: + # the executable has set UID bit. return True # test if the executable has the CAP_NET_RAW capability (Linux only)