diff options
author | 2018-12-13 09:47:38 -0500 | |
---|---|---|
committer | 2018-12-13 09:47:38 -0500 | |
commit | d6339ad261d18bb314980f87a45652ffbda9ce04 (patch) | |
tree | 8f5da3b66bc5c640f0686bcbd5df08f8ad6d88c5 | |
parent | Prepare release 0.9.3 (diff) | |
download | elfix-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.c | 7 |
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) |