homepage

This issue tracker has been migrated to GitHub , and is currently read-only.
For more information, see the GitHub FAQs in the Python's Developer Guide.

Author larry
Recipients abacabadabacaba, christian.heimes, larry, serhiy.storchaka
Date 2013年07月23日.03:44:21
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1374551062.61.0.407034390098.issue17899@psf.upfronthosting.co.za>
In-reply-to
Content
I've been staring at the code. I just realized: we really should call path_error() as soon as possible once we detect the error--as Christian's patch points out, close() will clear the error. So instead of playing footsie with assigning (further) to errno, I'm leaving the if (dirp == NULL) code where it is. It won't happen any sooner execution-wise; moving the close up only makes it slightly(?) easier to read, at the expense of duplicating some code.
Christian, the simplicity of your patch misses one minor point: when FDOPENDIR is not defined, fd is never used, and therefore emits a warning. I was trying to clean that up at the same time as fixing this bug.
History
Date User Action Args
2013年07月23日 03:44:22larrysetrecipients: + larry, christian.heimes, abacabadabacaba, serhiy.storchaka
2013年07月23日 03:44:22larrysetmessageid: <1374551062.61.0.407034390098.issue17899@psf.upfronthosting.co.za>
2013年07月23日 03:44:22larrylinkissue17899 messages
2013年07月23日 03:44:21larrycreate

AltStyle によって変換されたページ (->オリジナル) /