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 maker
Recipients christian.heimes, eric.araujo, ezio.melotti, maker, r.david.murray
Date 2012-09-28.14:15:02
SpamBayes Score -1.0
Marked as misclassified Yes
Message-id <1348841703.39.0.297385423449.issue16083@psf.upfronthosting.co.za>
In-reply-to
Content
Note: on python3, the error is 
  File "/[...]/cpython/Lib/genericpath.py", line 41, in isdir
    st = os.stat(s)
TypeError: embedded NUL character
(same exception but different message.)

I don't know where to start fixing, because the documentation for os.stat says "Perform the equivalent of a stat() system call on the given path.", which is not exactly the correct behavior in this case.

I see that 
$ printf "/\00" | xargs stat
stat()s correctly the root directory, and
$ printf "/\00tmp" | xargs stat
stat()s still '/'. So, is this a bug of os.stat?

Noising some coredevs.
History
Date User Action Args
2012-09-28 14:15:03makersetrecipients: + maker, christian.heimes, ezio.melotti, eric.araujo, r.david.murray
2012-09-28 14:15:03makersetmessageid: <1348841703.39.0.297385423449.issue16083@psf.upfronthosting.co.za>
2012-09-28 14:15:02makerlinkissue16083 messages
2012-09-28 14:15:02makercreate