diff options
Diffstat (limited to 'native/jni/native-lib/cpio.c')
-rw-r--r-- | native/jni/native-lib/cpio.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/native/jni/native-lib/cpio.c b/native/jni/native-lib/cpio.c index 2e41afd67..955fdccc8 100644 --- a/native/jni/native-lib/cpio.c +++ b/native/jni/native-lib/cpio.c @@ -334,7 +334,7 @@ int cpio_setFileReadonly (const char *filename) if (stat(filename, &statbuf) < 0) return errno; - if (chmod(filename, statbuf.st_mode & ~(S_IRUSR | S_IRGRP | S_IROTH)) < 0) + if (chmod(filename, statbuf.st_mode & ~(S_IWRITE | S_IWGRP | S_IWOTH)) < 0) return errno; return 0; |