Discussion:
[PATCH] date: fix some tests.
(too old to reply)
enh
2018-10-05 22:18:25 UTC
Permalink
`errno` isn't meaningful here.
---
toys/posix/date.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/toys/posix/date.c b/toys/posix/date.c
index 7a42fc8..9f244ca 100644
--- a/toys/posix/date.c
+++ b/toys/posix/date.c
@@ -228,5 +228,5 @@ void date_main(void)
bad_showdate:
setdate = TT.d;
bad_setdate:
- perror_exit("bad date '%s'", setdate);
+ error_exit("bad date '%s'", setdate);
}
--
2.19.0.605.g01d371f741-goog
Loading...