aboutsummaryrefslogtreecommitdiff
path: root/toys
diff options
context:
space:
mode:
authorRob Landley <rob@landley.net>2010-02-28 12:16:43 -0600
committerRob Landley <rob@landley.net>2010-02-28 12:16:43 -0600
commit6cf0a1cc10dcafcd943f7e77005399b53204f9c5 (patch)
treeaac695609e07a9db88e439a0883cfb2adcd6f989 /toys
parent905060ab99df690356303f37387d95e788fa7d30 (diff)
downloadtoybox-6cf0a1cc10dcafcd943f7e77005399b53204f9c5.tar.gz
One more little tweak to patch: unrecognized date format != delete file.
Diffstat (limited to 'toys')
-rw-r--r--toys/patch.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/toys/patch.c b/toys/patch.c
index 11b4d8aa..58ca5b3f 100644
--- a/toys/patch.c
+++ b/toys/patch.c
@@ -272,7 +272,7 @@ void patch_main(void)
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;