X-Git-Url: https://git.wh0rd.org/?a=blobdiff_plain;f=dump%2Fitime.c;h=62792253d13b33e0ccc8ce8a0936a3b809a47c68;hb=7fbb9b02f47a159786b43d30d4f6901a742aafa6;hp=e29632cf75626cf721a38ab238d282f2bcbcd46c;hpb=8d4197bb9ba5bbcef21409231ed8903b0cac353a;p=dump.git diff --git a/dump/itime.c b/dump/itime.c index e29632c..6279225 100644 --- a/dump/itime.c +++ b/dump/itime.c @@ -2,8 +2,7 @@ * Ported to Linux's Second Extended File System as part of the * dump and restore backup suit * Remy Card , 1994-1997 - * Stelian Pop , 1999 - * + * Stelian Pop , 1999 */ /*- @@ -40,11 +39,8 @@ */ #ifndef lint -#if 0 -static char sccsid[] = "@(#)itime.c 8.1 (Berkeley) 6/5/93"; -#endif static const char rcsid[] = - "$Id: itime.c,v 1.4 1999/10/11 13:08:07 stelian Exp $"; + "$Id: itime.c,v 1.7 1999/10/31 19:48:28 tiniou Exp $"; #endif /* not lint */ #include @@ -172,10 +168,10 @@ getdumptime(int createdumpdates) spcl.c_ddate = 0; lastlevel = '0'; - /* if we're not going to update dumpdates, there's no point in reading - it, particularly since /var might not be mounted... wait until here - to benefit from the initialization of variables needed by parent */ - if (!uflag && level == lastlevel) + /* If this is a level 0 dump, there's no point in trying to read + dumpdates. It may not exist yet, or may not be mounted. For + incrementals, we *must* read dumpdates (fail if it's not there!) */ + if (level == lastlevel) return; initdumptimes(createdumpdates); if (ddatev == NULL)