commit: cede3de716079a1a00d95409caf1244f2df1c9d1 Author: Anthony G. Basile <blueness <AT> gentoo <DOT> org> AuthorDate: Thu Dec 13 14:47:38 2018 +0000 Commit: Anthony G. Basile <blueness <AT> gentoo <DOT> org> CommitDate: Thu Dec 13 14:48:28 2018 +0000 URL: https://gitweb.gentoo.org/proj/elfix.git/commit/?id=cede3de7
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 <AT> gentoo.org> src/paxctl-ng.c | 7 +++++++ 1 file changed, 7 insertions(+) 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)