diff options
author | Zac Medico <zmedico@gentoo.org> | 2008-01-11 23:07:10 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2008-01-11 23:07:10 +0000 |
commit | c46cf4d2e85f0f359dbe76126f101837cab170a8 (patch) | |
tree | 50b485848400a988c5ebad9ce04e0762739e6c72 | |
parent | 4fbc5f47ace6e5236a649639f0817bc2ec09f1bb (diff) | |
download | portage-c46cf4d2e85f0f359dbe76126f101837cab170a8.tar.gz portage-c46cf4d2e85f0f359dbe76126f101837cab170a8.tar.bz2 portage-c46cf4d2e85f0f359dbe76126f101837cab170a8.zip |
Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call
inside dblink._security_check().
svn path=/main/trunk/; revision=9188
-rw-r--r-- | pym/portage/dbapi/vartree.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/pym/portage/dbapi/vartree.py b/pym/portage/dbapi/vartree.py index efaee6ede..98f751f50 100644 --- a/pym/portage/dbapi/vartree.py +++ b/pym/portage/dbapi/vartree.py @@ -1701,7 +1701,7 @@ class dblink(object): try: s = os.lstat(path) except OSError, e: - if e.errno != errno.ENOENT: + if e.errno not in (errno.ENOENT, errno.ENOTDIR): raise del e continue |