artulab
projects
/
openbsd
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
5f5d4d5
)
error in strtonum() conversion; found by Nathanael Rensen
author
deraadt
<deraadt@openbsd.org>
Thu, 23 Apr 2015 02:13:18 +0000
(
02:13
+0000)
committer
deraadt
<deraadt@openbsd.org>
Thu, 23 Apr 2015 02:13:18 +0000
(
02:13
+0000)
sbin/shutdown/shutdown.c
patch
|
blob
|
history
diff --git
a/sbin/shutdown/shutdown.c
b/sbin/shutdown/shutdown.c
index
07f9fb2
..
c06fc40
100644
(file)
--- a/
sbin/shutdown/shutdown.c
+++ b/
sbin/shutdown/shutdown.c
@@
-1,4
+1,4
@@
-/* $OpenBSD: shutdown.c,v 1.4
2 2015/04/18 18:28:37
deraadt Exp $ */
+/* $OpenBSD: shutdown.c,v 1.4
3 2015/04/23 02:13:18
deraadt Exp $ */
/* $NetBSD: shutdown.c,v 1.9 1995/03/18 15:01:09 cgd Exp $ */
/*
@@
-440,7
+440,7
@@
getoffset(char *timearg)
const char *errstr;
offset = strtonum(++timearg, 0, INT_MAX, &errstr);
- if (errstr)
;
+ if (errstr)
badtime();
offset *= 60;
shuttime = now + offset;