[New-bugs-announce] [issue26468] shutil.copy2 raises OSError if filesystem doesn't support chmod
Vojtěch Pachol
report at bugs.python.org
Wed Mar 2 04:21:59 EST 2016
New submission from Vojtěch Pachol:
`copy2` checks if `os` nodule has `chmod` and then it uses it without thinking.
On filesystems that doesn't support `chmod` it ends with
OSError: [Errno 95] Operation not supported: <filename>
which is not acceptable since documentation says "copy2() never returns failure".
----------
components: Library (Lib)
messages: 261100
nosy: Vojtěch Pachol
priority: normal
severity: normal
status: open
title: shutil.copy2 raises OSError if filesystem doesn't support chmod
versions: Python 2.7, Python 3.4, Python 3.5
_______________________________________
Python tracker <report at bugs.python.org>
<http://bugs.python.org/issue26468>
_______________________________________
More information about the New-bugs-announce
mailing list