projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b7962b0
)
Fix the suid/sgid check so it only looks at regular files since it can generate false...
author
Zac Medico
<zmedico@gentoo.org>
Sun, 10 Jun 2007 22:41:42 +0000
(22:41 -0000)
committer
Zac Medico
<zmedico@gentoo.org>
Sun, 10 Jun 2007 22:41:42 +0000
(22:41 -0000)
svn path=/main/trunk/; revision=6794
pym/portage/dbapi/vartree.py
patch
|
blob
|
history
diff --git
a/pym/portage/dbapi/vartree.py
b/pym/portage/dbapi/vartree.py
index 56e4f0097ac1740849251166e66bc738f3e53cc3..c7f5dc113dcacd775a5d86732345babb1215fc5f 100644
(file)
--- 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))