diff options
author | 2011-11-03 14:45:38 -0400 | |
---|---|---|
committer | 2011-11-03 14:45:38 -0400 | |
commit | 44313c38544af6a6fef8889fbb630bf468093890 (patch) | |
tree | 43e495aaf0a5c3238ece63ceb2d733d76bb372f3 /src | |
parent | src/paxctl-ng.c: added file globbing (diff) | |
download | elfix-44313c38544af6a6fef8889fbb630bf468093890.tar.gz elfix-44313c38544af6a6fef8889fbb630bf468093890.tar.bz2 elfix-44313c38544af6a6fef8889fbb630bf468093890.zip |
src/paxctl-ng.c: skip to next file on any error
Diffstat (limited to 'src')
-rw-r--r-- | src/paxctl-ng.c | 9 |
1 files changed, 6 insertions, 3 deletions
diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c index bc1933b..8f5bf62 100644 --- a/src/paxctl-ng.c +++ b/src/paxctl-ng.c @@ -301,8 +301,6 @@ print_flags(int fd) bin2string(flags, buf); printf("\tXT_PAX: %s\n", buf); } - - printf("\n"); } @@ -549,7 +547,10 @@ main( int argc, char *argv[]) rdwr_pt_pax = 0; printf("\topen(O_RDWR) failed: cannot change PT_PAX flags\n"); if((fd = open(argv[fi], O_RDONLY)) < 0) - error(EXIT_FAILURE, 0, "open() failed"); + { + printf("\topen(O_RDONLY) failed: cannot change PT_PAX flags\n\n"); + continue; + } } if(cp_flags == CREATE_XT_FLAGS_SECURE || cp_flags == CREATE_XT_FLAGS_DEFAULT) @@ -565,5 +566,7 @@ main( int argc, char *argv[]) print_flags(fd); close(fd); + + printf("\n"); } } |