From: Stelian Pop Date: Mon, 7 Oct 2002 19:27:35 +0000 (+0000) Subject: Fixed a bug causing dump to stop and report an error if an inode number in the exclud... X-Git-Tag: release_0_4b32~6 X-Git-Url: https://git.wh0rd.org/?p=dump.git;a=commitdiff_plain;h=b8d848c94d0127a49b3f395a885219ae9b429843 Fixed a bug causing dump to stop and report an error if an inode number in the exclude file was followed by some amount of whitespace. --- diff --git a/CHANGES b/CHANGES index dc1f613..e6dd0f7 100644 --- a/CHANGES +++ b/CHANGES @@ -1,4 +1,4 @@ -$Id: CHANGES,v 1.195 2002/09/02 12:43:12 stelian Exp $ +$Id: CHANGES,v 1.196 2002/10/07 19:27:35 stelian Exp $ Changes between versions 0.4b31 and 0.4b32 (released ?????????????) =================================================================== @@ -24,6 +24,11 @@ Changes between versions 0.4b31 and 0.4b32 (released ?????????????) this for proper operation. Thanks to Dirk Traenapp for reporting this. +5. Fixed a bug causing Dump to stop and report an error if an + inode number in the exclude file was followed by some amount + of whitespace. Thanks to Jeffrey Sofferin + for reporting this bug. + Changes between versions 0.4b30 and 0.4b31 (released July 30, 2002) =================================================================== diff --git a/THANKS b/THANKS index a4a6ea3..37aaaae 100644 --- a/THANKS +++ b/THANKS @@ -1,4 +1,4 @@ -$Id: THANKS,v 1.67 2002/09/02 12:44:03 stelian Exp $ +$Id: THANKS,v 1.68 2002/10/07 19:27:35 stelian Exp $ Dump and restore were written by the people of the CSRG at the University of California, Berkeley. @@ -89,6 +89,7 @@ Gunther Schlegel schlegel@riege.de Chris Siebenmann cks@utcc.utoronto.ca Paul Slootman paul@debian.org Bob Snyder rsnyder@janet.advsys.com +Jeffrey Sofferin sofferin@users.sourceforge.net Gabriel Somlo somlo@cs.colostate.edu Clemens Stiglechner a9401816@unet.univie.ac.at Matti Taskinen mkt@rni.helsinki.fi diff --git a/dump/main.c b/dump/main.c index ebfab4f..7f46e75 100644 --- a/dump/main.c +++ b/dump/main.c @@ -41,7 +41,7 @@ #ifndef lint static const char rcsid[] = - "$Id: main.c,v 1.75 2002/09/02 12:43:12 stelian Exp $"; + "$Id: main.c,v 1.76 2002/10/07 19:27:36 stelian Exp $"; #endif /* not lint */ #include @@ -1241,7 +1241,7 @@ do_exclude_ino_str(char * ino) { unsigned long inod; inod = strtoul(ino, &r, 10); - if (*r != '\0' || inod <= ROOTINO) { + if (( *r != '\0' && !isspace(*r) ) || inod <= ROOTINO) { msg("Invalid inode argument %s\n", ino); msg("The ENTIRE dump is aborted.\n"); exit(X_STARTUP);