view sources/patches/toybox-patch.patch @ 1265:918501f802d1

Update squashfs and kernel to current versions.
author Rob Landley <rob@landley.net>
date Thu, 21 Oct 2010 19:09:51 -0500
parents 68463eff052a
children
line wrap: on
line source

diff -r 633a5bf9509d toys/patch.c
--- a/toys/patch.c	Wed Jan 06 05:29:53 2010 -0600
+++ b/toys/patch.c	Tue Jan 26 01:01:20 2010 -0600
@@ -272,7 +272,7 @@
 			for (s = patchline+4; *s && *s!='\t'; s++)
 				if (*s=='\\' && s[1]) s++;
 			i = atoi(s);
-			if (i && i<=1970)
+			if (i>1900 && i<=1970)
 				*name = xstrdup("/dev/null");
 			else {
 				*s = 0;