toybox

changeset 375:9f4e5e15597c

One more little tweak to patch: unrecognized date format != delete file.
author Rob Landley <rob@landley.net>
date Sun Feb 28 12:16:43 2010 -0600 (2010-02-28)
parents 633a5bf9509d
children 35c8beb54800
files toys/patch.c
line diff
     1.1 --- a/toys/patch.c	Wed Jan 06 05:29:53 2010 -0600
     1.2 +++ b/toys/patch.c	Sun Feb 28 12:16:43 2010 -0600
     1.3 @@ -272,7 +272,7 @@
     1.4  			for (s = patchline+4; *s && *s!='\t'; s++)
     1.5  				if (*s=='\\' && s[1]) s++;
     1.6  			i = atoi(s);
     1.7 -			if (i && i<=1970)
     1.8 +			if (i>1900 && i<=1970)
     1.9  				*name = xstrdup("/dev/null");
    1.10  			else {
    1.11  				*s = 0;