-$Id: CHANGES,v 1.249 2004/06/02 09:22:48 stelian Exp $
+$Id: CHANGES,v 1.250 2004/06/17 09:01:13 stelian Exp $
Changes between versions 0.4b36 and 0.4b37 (released ??????????????)
====================================================================
that are also defined by <linux/types.h> (<asm/types.h>) and
they conflict).
+3. Make dump's reading of the dumpdates file a bit more robust,
+ preventing dump from crashing when the dumpdates file has
+ been modified by hand.
+
Changes between versions 0.4b35 and 0.4b36 (released April 21, 2004)
====================================================================
#ifndef lint
static const char rcsid[] =
- "$Id: itime.c,v 1.27 2004/04/21 08:55:51 stelian Exp $";
+ "$Id: itime.c,v 1.28 2004/06/17 09:01:15 stelian Exp $";
#endif /* not lint */
#include <config.h>
if (fgets(tbuf, sizeof (tbuf), df) == NULL)
return(-1);
recno++;
- if (makedumpdate(ddatep, tbuf) < 0)
- msg("Unknown intermediate format in %s, line %d\n",
+ if (makedumpdate(ddatep, tbuf) < 0) {
+ msg("Unknown format in %s, line %d\n",
dumpdates, recno);
+ return(-1);
+ }
#ifdef FDEBUG
msg("getrecord: %s %d %s", ddatep->dd_name, ddatep->dd_level,
/* device name */
if ( NULL == (tok = strsep( &tbuf, " ")) )
return(-1);
- if ( strlen(tok) > MAXPATHLEN )
+ if ( !tbuf || strlen(tok) > MAXPATHLEN )
return(-1);
strcpy(ddp->dd_name, tok);