| # On VxWorks root user id is 1 and 0 means no login user. It also | ||
| # allows non-root user to chown() to root. | ||
| if sys.platform != "vxworks": | ||
| if uid == 0: |
There was a problem hiding this comment.
Would the test work if you test for "uid == 1" on VxWorks?
Something like:
root_uid = (0 if sys.platform != "vxworks" else 1)
if uid == root_uid: ...
There was a problem hiding this comment.
modified accordingly.
Co-authored-by: Victor Stinner <vstinner@python.org>
|
The updated PR is less intrusive, thanks. I merged it. |
On VxWorks root user id is 1 and 0 means no login user. It also allows non-root user to chown() to root. So related test on VxWorks is invalid. Skip them.
https://bugs.python.org/issue31904