diff options
author | A. Wilcox <awilcox@wilcox-tech.com> | 2019-10-15 19:52:48 +0000 |
---|---|---|
committer | A. Wilcox <awilcox@wilcox-tech.com> | 2019-10-15 19:52:48 +0000 |
commit | 977a74ae83e627094a4228984fbd181fffeae1df (patch) | |
tree | bdf96049ae0562c4bad9610d7f90fc801aac536e /system/findutils/gnulib-test-datetime.patch | |
parent | dd60f61239bc94e9ebba77cd4729f0217859baa0 (diff) | |
parent | ab4ea5a14d0ae6b6f20e308439f31ea4b42a8e55 (diff) | |
download | packages-977a74ae83e627094a4228984fbd181fffeae1df.tar.gz packages-977a74ae83e627094a4228984fbd181fffeae1df.tar.bz2 packages-977a74ae83e627094a4228984fbd181fffeae1df.tar.xz packages-977a74ae83e627094a4228984fbd181fffeae1df.zip |
Merge branch 'sr.2019.10.03' into 'master'
Miscellaneous bumps, 2019.10.03
See merge request adelie/packages!361
Diffstat (limited to 'system/findutils/gnulib-test-datetime.patch')
-rw-r--r-- | system/findutils/gnulib-test-datetime.patch | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/system/findutils/gnulib-test-datetime.patch b/system/findutils/gnulib-test-datetime.patch new file mode 100644 index 000000000..2b227fc27 --- /dev/null +++ b/system/findutils/gnulib-test-datetime.patch @@ -0,0 +1,24 @@ +--- coreutils-8.31/gnulib-tests/test-parse-datetime.c.old 2019-06-01 07:46:25.716292871 +0000 ++++ coreutils-8.31/gnulib-tests/test-parse-datetime.c 2019-06-01 22:07:59.456653669 +0000 +@@ -432,21 +432,5 @@ + ASSERT ( parse_datetime (&result, "TZ=\"\\\\\"", &now)); + ASSERT ( parse_datetime (&result, "TZ=\"\\\"\"", &now)); + +- /* Outlandishly-long time zone abbreviations should not cause problems. */ +- { +- static char const bufprefix[] = "TZ=\""; +- enum { tzname_len = 2000 }; +- static char const bufsuffix[] = "0\" 1970-01-01 01:02:03.123456789"; +- enum { bufsize = sizeof bufprefix - 1 + tzname_len + sizeof bufsuffix }; +- char buf[bufsize]; +- memcpy (buf, bufprefix, sizeof bufprefix - 1); +- memset (buf + sizeof bufprefix - 1, 'X', tzname_len); +- strcpy (buf + bufsize - sizeof bufsuffix, bufsuffix); +- ASSERT (parse_datetime (&result, buf, &now)); +- LOG (buf, now, result); +- ASSERT (result.tv_sec == 1 * 60 * 60 + 2 * 60 + 3 +- && result.tv_nsec == 123456789); +- } +- + return 0; + } |