getdate: correctly specify error number
authorA. Wilcox <AWilcox@Wilcox-Tech.com>
Fri, 9 Jun 2017 05:26:18 +0000 (00:26 -0500)
committerRich Felker <dalias@aerifal.cx>
Wed, 14 Jun 2017 23:50:58 +0000 (19:50 -0400)
commit10800088099ec4c27c1db6c613c8bbf9f76e4057
treec4a6978a0806d91991af2a63fba384b4afae5722
parentaf0517301677b4206c605caaef25f5d57a31b5b8
getdate: correctly specify error number

POSIX defines getdate error #5 as:
"An I/O error is encountered while reading the template file."

POSIX defines getdate error #7 as:
"There is no line in the template that matches the input."

This change correctly disambiguates between the two error conditions.
src/time/getdate.c