X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=dump%2Foptr.c;h=cd98e6664d36ba963f6fbd41c6001fbcd88b5b71;hp=d1cdf1d711821d06572daae8b76b44afafe4ef61;hb=e084ba00f03da98a6d260b0b3856aee2dfbb4c58;hpb=e46507f206f7adcb8d2e218963d2115236e86604 diff --git a/dump/optr.c b/dump/optr.c index d1cdf1d..cd98e66 100644 --- a/dump/optr.c +++ b/dump/optr.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: optr.c,v 1.25 2001/07/18 09:12:05 stelian Exp $"; + "$Id: optr.c,v 1.26 2001/08/16 09:37:59 stelian Exp $"; #endif /* not lint */ #include @@ -106,6 +106,12 @@ query(const char *question) FILE *mytty; time_t firstprompt, when_answered; + if (qflag) { + msg("%s - forced abort\n", question); + dumpabort(0); + /* NOTREACHED */ + } + firstprompt = time(NULL); if ((mytty = fopen(_PATH_TTY, "r")) == NULL)