[issue34711] Fix test_httpservers on AIX

Michael Felt report at bugs.python.org
Mon Sep 17 08:16:04 EDT 2018


Michael Felt <aixtools at felt.demon.nl> added the comment:

On 17/09/2018 12:47, Jeremy Kloth wrote:
> Jeremy Kloth <jeremy.kloth+python-tracker at gmail.com> added the comment:
>
> This is also an issue on Windows when the target path resides within a junction, paths outside of a junction respond (err, fail) as expected.
>
> https://developercommunity.visualstudio.com/content/problem/272379/createfile-non-error-on-filename-with-trailing-bac.html
:) Glad to hear I am not the only one facing this. However, looking at
the standard - it looks like it may be "a bug". Not the easiest to read,
but my understanding of this leans to calling opening a file using
"/some/path/to/file/" is wrong:

[ENOTDIR]
    A component of the path prefix names an existing file that is
    neither a directory nor a symbolic link to a directory; or O_CREAT
    and O_EXCL are not specified, the /path/ argument contains at least
    one non- <slash> character and ends with one or more trailing
    <slash> characters, and the last pathname component names an
    existing file that is neither a directory nor a symbolic link to a
    directory; or O_DIRECTORY was specified and the /path/ argument
    resolves to a non-directory file.

from http://pubs.opengroup.org/onlinepubs/9699919799/functions/open.html

> ----------
> nosy: +jkloth
>
> _______________________________________
> Python tracker <report at bugs.python.org>
> <https://bugs.python.org/issue34711>
> _______________________________________
>

----------

_______________________________________
Python tracker <report at bugs.python.org>
<https://bugs.python.org/issue34711>
_______________________________________


More information about the Python-bugs-list mailing list