X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Foptr.c;h=56e1f345bfe64aadfe15f997d21f92d1579101ca;hb=b82d31dc01e8474d503a86fbf52ddf6d74c245e6;hp=88ff63d0c8e708fd55aabdaace79e76add26b259;hpb=8bfad78a38f63cccdfba87667adf9b6151524088;p=dump.git diff --git a/dump/optr.c b/dump/optr.c index 88ff63d..56e1f34 100644 --- a/dump/optr.c +++ b/dump/optr.c @@ -41,13 +41,14 @@ #ifndef lint static const char rcsid[] = - "$Id: optr.c,v 1.24 2001/06/18 11:07:45 stelian Exp $"; + "$Id: optr.c,v 1.27 2001/09/12 09:02:51 stelian Exp $"; #endif /* not lint */ #include #include #include #include +#include #include #include @@ -69,7 +70,6 @@ static const char rcsid[] = #include #include #include -#include #endif #include "dump.h" @@ -105,6 +105,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)