[New-bugs-announce] [issue32277] SystemError via chmod(symlink, ..., follow_symlinks=False)

Anthony Sottile report at bugs.python.org
Mon Dec 11 12:45:53 EST 2017


New submission from Anthony Sottile <asottile at umich.edu>:

While investigating https://bugs.python.org/issue31940 I noticed the following is raised as `SystemError` instead of the expected `NotImplementedError`

(note: you need a platform with fchmodat but does not support nofollow)

```
touch foo
ln -s foo bar
python3.6 -c 'import os; os.chmod("bar", 0o666, follow_symlinks=False)
```

Expected: raised `NotImplementedError`
Actual: raised `SystemError`

----------
messages: 308062
nosy: Anthony Sottile
priority: normal
severity: normal
status: open
title: SystemError via chmod(symlink, ..., follow_symlinks=False)
versions: Python 3.6, Python 3.7, Python 3.8

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


More information about the New-bugs-announce mailing list