X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=blobdiff_plain;f=restore%2Futilities.c;fp=restore%2Futilities.c;h=c16590c680d7655c35c00cf009feb2f91c55317e;hp=2e73aa87cac93cb2bfb3accdfa899b578335feb5;hb=30e8407d4ff60da69e6f6202267eb8c705743b5d;hpb=35ed8cf887b00613ffa27f7259ef081830f447e2 diff --git a/restore/utilities.c b/restore/utilities.c index 2e73aa8..c16590c 100644 --- a/restore/utilities.c +++ b/restore/utilities.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: utilities.c,v 1.26 2004/12/15 11:00:01 stelian Exp $"; + "$Id: utilities.c,v 1.27 2005/01/13 15:41:07 stelian Exp $"; #endif /* not lint */ #include @@ -487,8 +487,10 @@ panic(fmt, va_alist) if (yflag) return; if (reply("abort") == GOOD) { - if (reply("dump core") == GOOD) + if (reply("dump core") == GOOD) { + fchdir(wdfd); abort(); + } exit(1); } }