termux-packages/packages/arj/mode.patch
Leonid Pliushch 47df9e73c1 move some packages from unstable repo
* algernon
* apg
* aptly
* arj
* codecrypt
* crunch
* cryptopp
* diskus
* google-glog
* hexyl
* jp2a
* libgfshare
* libmcrypt
* libmhash
* libmicrohttpd
* libnftnl
* libsigsegv
* lua-lpeg
* morse2ascii
* seccure
* secure-delete
* ssss
* steghide
* taglib
* unicorn
* vegeta
* vis
* wren
* wuzz
* zsync
2019-09-08 16:44:36 +03:00

16 lines
504 B
Diff

Fix mode consts.
Use modern consts present on modern Android.
--- src-orig/arjsfxjr.c 2017-09-08 21:45:38.418802563 +0200
+++ src/arjsfxjr.c 2017-09-08 22:12:14.130184907 +0200
@@ -520,7 +520,7 @@
}
}
create_subdir_tree(filename);
- if(file_type!=ARJT_DIR&&(atstream=open(filename, O_CREAT|O_TRUNC|O_BINARY|O_RDWR, S_IREAD|S_IWRITE))<0)
+ if(file_type!=ARJT_DIR&&(atstream=open(filename, O_CREAT|O_TRUNC|O_BINARY|O_RDWR, S_IRUSR|S_IWUSR))<0)
{
skip_file(M_CANTOPEN_F);
errors++;