diff options
author | Zac Medico <zmedico@gentoo.org> | 2007-06-10 22:41:42 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2007-06-10 22:41:42 +0000 |
commit | c1f8e69d58a5e5a843f42f2750f69505274260cc (patch) | |
tree | b44f1db6dbccf05410dbee81accc240cbeb3c0a8 | |
parent | b7962b0f49bd2a2e61042d0c08bf0d7ca9826a41 (diff) | |
download | portage-c1f8e69d58a5e5a843f42f2750f69505274260cc.tar.gz portage-c1f8e69d58a5e5a843f42f2750f69505274260cc.tar.bz2 portage-c1f8e69d58a5e5a843f42f2750f69505274260cc.zip |
Fix the suid/sgid check so it only looks at regular files since it can generate false positives otherwise.
svn path=/main/trunk/; revision=6794
-rw-r--r-- | pym/portage/dbapi/vartree.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index 56e4f0097..c7f5dc113 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1483,7 +1483,8 @@ class dblink(object): raise del e continue - if s.st_nlink > 1 and \ + if stat.S_ISREG(s.st_mode) and \ + s.st_nlink > 1 and \ s.st_mode & (stat.S_ISUID | stat.S_ISGID): k = (s.st_dev, s.st_ino) inode_map.setdefault(k, []).append((path, s)) |