X-Git-Url: https://git.notmuchmail.org/git?p=notmuch;a=blobdiff_plain;f=notmuch-restore.c;h=ff1ebab10d758b963a4774f91e89a43c6be3c50f;hp=75bc09a68629da667fb8e3a62257ba028c6fc431;hb=903fe6398693621484315d30bd8d37de4095f4a5;hpb=a77d9adcacf001025092087fb6c1d77743cdf699 diff --git a/notmuch-restore.c b/notmuch-restore.c index 75bc09a6..ff1ebab1 100644 --- a/notmuch-restore.c +++ b/notmuch-restore.c @@ -77,6 +77,13 @@ notmuch_restore_command (unused (void *ctx), int argc, char *argv[]) optind++; } + if (optind < argc) { + fprintf (stderr, + "Cannot read dump from more than one file: %s\n", + argv[optind]); + return 1; + } + /* Dump output is one line per message. We match a sequence of * non-space characters for the message-id, then one or more * spaces, then a list of space-separated tags as a sequence of