From: Zac Medico Date: Fri, 11 Jan 2008 23:07:10 +0000 (-0000) Subject: Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call X-Git-Tag: v2.2_pre1~54 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c46cf4d2e85f0f359dbe76126f101837cab170a8;p=portage.git Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call inside dblink._security_check(). svn path=/main/trunk/; revision=9188 --- 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