]> sourceware.org Git - glibc.git/commit
Accept leading and trailing spaces in getdate input string
authorSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 10 Apr 2013 06:01:46 +0000 (11:31 +0530)
committerSiddhesh Poyarekar <siddhesh@redhat.com>
Wed, 10 Apr 2013 06:01:46 +0000 (11:31 +0530)
commitabe7f530bf5c741fe6f0658da7be59d8db168f7f
treeb57ba83c808a98b42b5b9d548afc51ae6962982d
parent61c23e6234db0e94cd850e88536401910ac61516
Accept leading and trailing spaces in getdate input string

Fixes #15346.

The POSIX description of getdate allows for extra spaces in the
getdate input string.  __getdate_r uses strptime internally, which
works fine with extra spaces between format strings (and hence within
an input string) but not with leading and trailing spaces.  So we trim
off the leading and trailing spaces before we pass it on to strptime.
ChangeLog
NEWS
time/getdate.c
time/tst-getdate.c
This page took 0.039927 seconds and 5 git commands to generate.