diff options
author | Christian Heimes <christian@python.org> | 2022-06-06 17:24:11 (GMT) |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-06 17:24:11 (GMT) |
commit | 22fed605e096eb74f3aa33f6d25aee76fdc2a3fa (patch) | |
tree | cd15eb66416ec5aa0ad33e48b0c76f98bb811b45 /Modules/posixmodule.c | |
parent | 56b5daf15970be449d44e91f08db84c698ac5506 (diff) | |
download | cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.zip cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.tar.gz cpython-22fed605e096eb74f3aa33f6d25aee76fdc2a3fa.tar.bz2 |
gh-90473: Make chmod a dummy on WASI, skip chmod tests (GH-93534)
WASI does not have the ``chmod(2)`` syscall yet.
Diffstat (limited to 'Modules/posixmodule.c')
-rw-r--r-- | Modules/posixmodule.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/Modules/posixmodule.c b/Modules/posixmodule.c index 6883ad0..d41e19e 100644 --- a/Modules/posixmodule.c +++ b/Modules/posixmodule.c @@ -3282,6 +3282,10 @@ os_chmod_impl(PyObject *module, path_t *path, int mode, int dir_fd, { #ifdef HAVE_CHMOD result = chmod(path->narrow, mode); +#elif defined(__wasi__) + // WASI SDK 15.0 does not support chmod. + // Ignore missing syscall for now. + result = 0; #else result = -1; errno = ENOSYS; |