Commit 52d8d000 authored by Per Cederqvist's avatar Per Cederqvist

(main): Allow -g even if errors occured, but only if the user confirms.

parent 2cb3da7f
/*
* $Id: dbck.c,v 0.40 1998/07/26 16:48:17 ceder Exp $
* $Id: dbck.c,v 0.41 1998/10/11 16:56:26 ceder Exp $
* Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996 Lysator Academic Computer Association.
*
* This file is part of the LysKOM server.
......@@ -29,7 +29,7 @@
*/
static const char *
rcsid = "$Id: dbck.c,v 0.40 1998/07/26 16:48:17 ceder Exp $";
rcsid = "$Id: dbck.c,v 0.41 1998/10/11 16:56:26 ceder Exp $";
#include "rcs.h"
USE(rcsid);
......@@ -1620,7 +1620,21 @@ main (int argc,
log("ready.\n");
}
else
log("Compression not done since errors was found.\n");
{
log("Found %d errors; performed %d modifications.\n",
errors, modifications);
fflush(stdout);
fflush(stderr);
if (confirm ("garb texts anyhow?"))
{
garb_text_file();
log("ready.\n");
}
else
{
log("Compression not done since errors was found.\n");
}
}
}
return errors != 0;
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment