X-Git-Url: https://diplodocus.org/git/nmh/blobdiff_plain/a57e5d9907d845d6f83d2cfdea55cd52efad793f..e6d87a04919616cf2a6ea6cbda81d5fbc31cc8a2:/uip/new.c?ds=sidebyside diff --git a/uip/new.c b/uip/new.c index 2bb8c17a..9a7f9d4f 100644 --- a/uip/new.c +++ b/uip/new.c @@ -370,6 +370,8 @@ doit(char *cur, char *folders, char *sequences[]) return prev; } } else if (run_mode == UNSEEN) { + int status; + if (node->n_field == NULL) { continue; } @@ -388,7 +390,8 @@ doit(char *cur, char *folders, char *sequences[]) /* TODO: Split enough of scan.c out so that we can call it here. */ command = concat("scan +", node->n_name, " ", sequences_s, (void *)NULL); - if (system(command) == NOTOK) { + status = system(command); + if (! WIFEXITED (status)) { adios (command, "system"); } free(command);