Module Name: src
Committed By: prlw1
Date: Thu Sep 5 11:34:40 UTC 2013
Modified Files:
src/usr.bin/newsyslog: newsyslog.c
Log Message:
Fix
/var/log/httpd/access.log 644 52 * $W0D23 ZBP /var/run/httpd.pid 30
newsyslog: config line 16: bad signal type
(strtol: **endptr is '\0' on success rather than *endptr)
To generate a diff of this commit:
cvs rdiff -u -r1.60 -r1.61 src/usr.bin/newsyslog/newsyslog.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/newsyslog/newsyslog.c
diff -u src/usr.bin/newsyslog/newsyslog.c:1.60 src/usr.bin/newsyslog/newsyslog.c:1.61
--- src/usr.bin/newsyslog/newsyslog.c:1.60 Sun Jun 17 03:52:32 2012
+++ src/usr.bin/newsyslog/newsyslog.c Thu Sep 5 11:34:40 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: newsyslog.c,v 1.60 2012/06/17 03:52:32 christos Exp $ */
+/* $NetBSD: newsyslog.c,v 1.61 2013/09/05 11:34:40 prlw1 Exp $ */
/*
* Copyright (c) 1999, 2000 Andrew Doran <[email protected]>
@@ -55,7 +55,7 @@
#include <sys/cdefs.h>
#ifndef lint
-__RCSID("$NetBSD: newsyslog.c,v 1.60 2012/06/17 03:52:32 christos Exp $");
+__RCSID("$NetBSD: newsyslog.c,v 1.61 2013/09/05 11:34:40 prlw1 Exp $");
#endif /* not lint */
#include <sys/types.h>
@@ -824,7 +824,7 @@ getsig(const char *sig)
if (isnumber(sig)) {
n = (int)strtol(sig, &p, 0);
- if (p != '\0' || n < 0 || n >= NSIG)
+ if (*p != '\0' || n < 0 || n >= NSIG)
return -1;
return n;
}