From: Zac Medico Date: Fri, 11 Jan 2008 23:10:38 +0000 (-0000) Subject: Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call X-Git-Tag: v2.1.4~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=7dda43c6435a29511d02553c4399d97db306655e;p=portage.git Bug #205318 - Handle errno.ENOTDIR thrown from the lstat call inside dblink._security_check(). (trunk r9188) svn path=/main/branches/2.1.2/; revision=9189 --- diff --git a/pym/portage.py b/pym/portage.py index 60ac5aa9e..1ef6602a7 100644 --- a/pym/portage.py +++ b/pym/portage.py @@ -8636,7 +8636,7 @@ class dblink: 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