diff options
author | Anthony G. Basile <blueness@gentoo.org> | 2012-11-10 16:55:05 -0500 |
---|---|---|
committer | Anthony G. Basile <blueness@gentoo.org> | 2012-11-10 16:55:05 -0500 |
commit | 7b01e0df4cc90c829b2294a231c61a30f577a5d7 (patch) | |
tree | d9017e1fbe08bc5682df982e12733336c6e20045 | |
parent | src/paxctl-ng.c: fix logic of limiting pt/xtpax when both are possible (diff) | |
download | elfix-7b01e0df4cc90c829b2294a231c61a30f577a5d7.tar.gz elfix-7b01e0df4cc90c829b2294a231c61a30f577a5d7.tar.bz2 elfix-7b01e0df4cc90c829b2294a231c61a30f577a5d7.zip |
src/paxctl-ng.c: only PT_PAX needs the file open RDWR to set
-rw-r--r-- | src/paxctl-ng.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c index 61bbcce..83ed15f 100644 --- a/src/paxctl-ng.c +++ b/src/paxctl-ng.c @@ -681,20 +681,20 @@ main( int argc, char *argv[]) if(verbose) printf("%s:\n", argv[fi]); -#ifdef PTPAX if((fd = open(argv[fi], O_RDWR)) < 0) { rdwr_pt_pax = 0; +#ifdef PTPAX if(verbose) printf("\topen(O_RDWR) failed: cannot change PT_PAX flags\n"); +#endif if((fd = open(argv[fi], O_RDONLY)) < 0) { if(verbose) - printf("\topen(O_RDONLY) failed: cannot change PT_PAX flags\n\n"); + printf("\topen(O_RDONLY) failed: cannot read/change PAX flags\n\n"); continue; } } -#endif #ifdef XTPAX if(cp_flags == CREATE_XT_FLAGS_SECURE || cp_flags == CREATE_XT_FLAGS_DEFAULT) |