From: Stelian Pop Date: Fri, 14 Jan 2005 13:04:56 +0000 (+0000) Subject: Force restore -C to imply -N X-Git-Tag: release_0_4b39~1 X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=commitdiff_plain;h=18dc6e86736f5319aa7f1d85bf3dc0f696a981ec Force restore -C to imply -N --- diff --git a/CHANGES b/CHANGES index cdeb396..91f827e 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.267 2005/01/14 13:04:07 stelian Exp $ +$Id: CHANGES,v 1.268 2005/01/14 13:04:56 stelian Exp $ Changes between versions 0.4b38 and 0.4b39 (released ???????????????) ===================================================================== @@ -24,6 +24,9 @@ Changes between versions 0.4b38 and 0.4b39 (released ???????????????) for finding the bug and helping me reproduce it. +5. Made restore -C force the -N flag (no writing allowed on + the disk) in order to prevent more bugs like the above one. + Changes between versions 0.4b37 and 0.4b38 (released January 7, 2005) ===================================================================== diff --git a/restore/main.c b/restore/main.c index 0f43cb7..dfbe8c6 100644 --- a/restore/main.c +++ b/restore/main.c @@ -37,7 +37,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.48 2005/01/13 15:41:06 stelian Exp $"; + "$Id: main.c,v 1.49 2005/01/14 13:04:56 stelian Exp $"; #endif /* not lint */ #include @@ -424,6 +424,7 @@ main(int argc, char *argv[]) Vprintf(stdout, "Begin compare restore\n"); compare_ignore_not_found = 0; compare_errors = 0; + Nflag = 1; setup(); printf("filesys = %s\n", filesys); if (STAT(filesys, &stbuf) < 0)