diff options
-rw-r--r-- | nlplug-findfs.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/nlplug-findfs.c b/nlplug-findfs.c index 7d1511e..b2b5ac8 100644 --- a/nlplug-findfs.c +++ b/nlplug-findfs.c @@ -840,6 +840,7 @@ int main(int argc, char *argv[]) int event_count = 0; size_t total_bytes = 0; int found = 0; + int not_found_is_ok = 0; char *program_argv[2] = {0,0}; pthread_t tid; sigset_t sigchldmask; @@ -875,6 +876,9 @@ int main(int argc, char *argv[]) case 'm': conf.crypt_name = EARGF(usage(1)); break; + case 'n': + not_found_is_ok = 1; + break; case 'd': dodebug = 1; break; @@ -1017,5 +1021,5 @@ int main(int argc, char *argv[]) conf.fork_count, event_count, total_bytes); - return found ? 0 : 1; + return found || not_found_is_ok ? 0 : 1; } |