summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2011-11-03 14:45:38 -0400
committerAnthony G. Basile <blueness@gentoo.org>2011-11-03 15:02:50 -0400
commitc83df85a8ac0ae6f0991667e576f4affc8582cc0 (patch)
tree233e6b5be972e675ec7cb2ccdaa1a0d3a6d8330f
parentsrc/paxctl-ng.c: added file globbing (diff)
downloadelfix-c83df85a8ac0ae6f0991667e576f4affc8582cc0.tar.gz
elfix-c83df85a8ac0ae6f0991667e576f4affc8582cc0.tar.bz2
elfix-c83df85a8ac0ae6f0991667e576f4affc8582cc0.zip
src/paxctl-ng.c: skip to next file on any error
-rw-r--r--src/paxctl-ng.c9
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");
}
}