diff options
author | Todd C. Miller <millert@cvs.openbsd.org> | 2000-06-10 02:49:42 +0000 |
---|---|---|
committer | Todd C. Miller <millert@cvs.openbsd.org> | 2000-06-10 02:49:42 +0000 |
commit | 5909da2345e39fd5dfc3a3fbf503a3f7dbef5f3d (patch) | |
tree | ee2cacc9951d29a67cd8392e475d21e2f48df882 /usr.bin | |
parent | 69d6992183cedaf529b0a58bb5533295806df7fc (diff) |
Increment pl when filling in pidlist. It was just overwriting the first
entry each time. Unless you have multiple pid files you don't notice
which is why this slipped through the cracks. Noted by Jonathan Rozes.
Diffstat (limited to 'usr.bin')
-rw-r--r-- | usr.bin/newsyslog/newsyslog.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/newsyslog/newsyslog.c b/usr.bin/newsyslog/newsyslog.c index 3db201e5ee6..a739d436a3d 100644 --- a/usr.bin/newsyslog/newsyslog.c +++ b/usr.bin/newsyslog/newsyslog.c @@ -1,4 +1,4 @@ -/* $OpenBSD: newsyslog.c,v 1.30 1999/11/11 22:24:14 millert Exp $ */ +/* $OpenBSD: newsyslog.c,v 1.31 2000/06/10 02:49:41 millert Exp $ */ /* * Copyright (c) 1999 Todd C. Miller <Todd.Miller@courtesan.com> @@ -88,7 +88,7 @@ provided "as is" without express or implied warranty. */ #ifndef lint -static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.30 1999/11/11 22:24:14 millert Exp $"; +static char rcsid[] = "$OpenBSD: newsyslog.c,v 1.31 2000/06/10 02:49:41 millert Exp $"; #endif /* not lint */ #ifndef CONF @@ -229,6 +229,7 @@ main(argc, argv) pl->file = q->pidfile; pl->signal = q->signal; } + pl++; } } q = q->next; |