projects
/
platform
/
upstream
/
coreutils.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b2747b9
)
(main): Arrange to exit unsuccessfully when stime fails.
author
Jim Meyering
<jim@meyering.net>
Fri, 11 Dec 1998 13:37:52 +0000
(13:37 +0000)
committer
Jim Meyering
<jim@meyering.net>
Fri, 11 Dec 1998 13:37:52 +0000
(13:37 +0000)
From Andreas Schwab.
src/date.c
patch
|
blob
|
history
diff --git
a/src/date.c
b/src/date.c
index
bf5b565
..
79eaf4f
100644
(file)
--- a/
src/date.c
+++ b/
src/date.c
@@
-344,7
+344,10
@@
argument must be a format string beginning with `+'."),
/* Set the system clock to the specified date, then regardless of
the success of that operation, format and print that date. */
if (stime (&when) == -1)
- error (0, errno, _("cannot set date"));
+ {
+ error (0, errno, _("cannot set date"));
+ status = 1;
+ }
}
/* When given a universal time option, set TZ to UTC0 after