X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=restore%2Fmain.c;h=344ec5cacf0567ea5561991e30dbc4473e033a9d;hb=aec13b2a483076d0d31256729c3602143993bf63;hp=1cd1a662981ec7b85210053568106c19048176eb;hpb=1a05d45daf5f6259b1aab68092daba0cad77f1ac;p=dump.git diff --git a/restore/main.c b/restore/main.c index 1cd1a66..344ec5c 100644 --- a/restore/main.c +++ b/restore/main.c @@ -40,7 +40,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.11 2000/03/09 13:12:31 stelian Exp $"; + "$Id: main.c,v 1.12 2000/05/28 16:52:21 stelian Exp $"; #endif /* not lint */ #include @@ -87,6 +87,7 @@ time_t dumpdate; FILE *terminal; char *tmpdir; int compare_ignore_not_found; +int compare_errors; char filesys[NAMELEN]; static const char *stdin_opt = NULL; @@ -250,6 +251,7 @@ main(int argc, char *argv[]) Vprintf(stdout, "Begin compare restore\n"); compare_ignore_not_found = 0; + compare_errors = 0; setup(); printf("filesys = %s\n", filesys); if (stat(filesys, &stbuf) < 0) @@ -262,6 +264,10 @@ main(int argc, char *argv[]) treescan(".", ROOTINO, nodeupdates); compareleaves(); checkrestore(); + if (compare_errors) { + printf("Some files were modified!\n"); + exit(2); + } break; }