aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnthony G. Basile <blueness@gentoo.org>2018-12-13 09:47:38 -0500
committerAnthony G. Basile <blueness@gentoo.org>2018-12-13 09:47:38 -0500
commitd6339ad261d18bb314980f87a45652ffbda9ce04 (patch)
tree8f5da3b66bc5c640f0686bcbd5df08f8ad6d88c5
parentPrepare release 0.9.3 (diff)
downloadelfix-d6339ad261d18bb314980f87a45652ffbda9ce04.tar.gz
elfix-d6339ad261d18bb314980f87a45652ffbda9ce04.tar.bz2
elfix-d6339ad261d18bb314980f87a45652ffbda9ce04.zip
src/paxctl-ng.c: return ENOENT if a file is not found
This addresses https://bugs.gentoo.org/672072 Signed-off-by: Anthony G. Basile <blueness@gentoo.org>
-rw-r--r--src/paxctl-ng.c7
1 files changed, 7 insertions, 0 deletions
diff --git a/src/paxctl-ng.c b/src/paxctl-ng.c
index 25396d4..43718de 100644
--- a/src/paxctl-ng.c
+++ b/src/paxctl-ng.c
@@ -805,6 +805,13 @@ main( int argc, char *argv[])
if((fd = open(argv[fi], O_RDWR)) < 0)
{
+ if(errno == ENOENT) {
+ if(verbose)
+ printf("\topen() failed: file does not exist\n\n");
+ ret |= ENOENT;
+ continue;
+ }
+
rdwr_pt_pax = 0;
#ifdef PTPAX
if(verbose)