aboutsummaryrefslogtreecommitdiffstats
path: root/builtin.c
diff options
context:
space:
mode:
authorArnold D. Robbins <arnold@skeeve.com>2015-04-13 16:24:12 +0300
committerArnold D. Robbins <arnold@skeeve.com>2015-04-13 16:24:12 +0300
commit11692d41b177e93df106309cf2eda493350bee35 (patch)
tree063f34cc9c466b258a2744ff21aa1da52bfab73c /builtin.c
parent06a351f8774409db0d9c72ac4a51652f7c855c06 (diff)
parentf156eb53457a9e4e34c1b96f9e54eb130dffd8a3 (diff)
downloadegawk-11692d41b177e93df106309cf2eda493350bee35.tar.gz
egawk-11692d41b177e93df106309cf2eda493350bee35.tar.bz2
egawk-11692d41b177e93df106309cf2eda493350bee35.zip
Merge branch 'gawk-4.1-stable'
Diffstat (limited to 'builtin.c')
-rw-r--r--builtin.c12
1 files changed, 10 insertions, 2 deletions
diff --git a/builtin.c b/builtin.c
index b70176dc..6658e750 100644
--- a/builtin.c
+++ b/builtin.c
@@ -1921,8 +1921,16 @@ do_strftime(int nargs)
lintwarn(_("strftime: received non-numeric second argument"));
(void) force_number(t2);
clock_val = get_number_si(t2);
- if (clock_val < 0)
- fatal(_("strftime: second argument less than 0 or too big for time_t"));
+ /*
+ * 4/2015: This used to be here:
+ *
+ * if (clock_val < 0)
+ * fatal(_("strftime: second argument less than 0 or too big for time_t"));
+ *
+ * It is now disabled since some systems have strftime that works
+ * on times before the epoch. No arbritrary limits comes into
+ * play at this point.
+ */
fclock = (time_t) clock_val;
DEREF(t2);
}