summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--ChangeLog9
-rw-r--r--sshd.c7
2 files changed, 13 insertions, 3 deletions
diff --git a/ChangeLog b/ChangeLog
index f40631cf8..130989988 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,10 @@
120030703
2 - (dtucker) OpenBSD CVS Sync
3 - djm@cvs.openbsd.org 2003/06/28 07:48:10
4 [sshd.c]
5 report pidfile creation errors, based on patch from Roumen Petrov;
6 ok markus@
7
120030630 820030630
2 - (djm) Search for support functions necessary to build our 9 - (djm) Search for support functions necessary to build our
3 getrrsetbyname() replacement. Patch from Roumen Petrov 10 getrrsetbyname() replacement. Patch from Roumen Petrov
@@ -617,4 +624,4 @@
617 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. 624 - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo.
618 Report from murple@murple.net, diagnosis from dtucker@zip.com.au 625 Report from murple@murple.net, diagnosis from dtucker@zip.com.au
619 626
620$Id: ChangeLog,v 1.2835 2003/06/30 09:21:36 djm Exp $ 627$Id: ChangeLog,v 1.2836 2003/07/03 03:40:44 dtucker Exp $
diff --git a/sshd.c b/sshd.c
index b8f360841..b4cdc724a 100644
--- a/sshd.c
+++ b/sshd.c
@@ -42,7 +42,7 @@
42 */ 42 */
43 43
44#include "includes.h" 44#include "includes.h"
45RCSID("$OpenBSD: sshd.c,v 1.269 2003/06/24 08:23:46 markus Exp $"); 45RCSID("$OpenBSD: sshd.c,v 1.270 2003/06/28 07:48:10 djm Exp $");
46 46
47#include <openssl/dh.h> 47#include <openssl/dh.h>
48#include <openssl/bn.h> 48#include <openssl/bn.h>
@@ -1217,7 +1217,10 @@ main(int ac, char **av)
1217 * overwrite any old pid in the file. 1217 * overwrite any old pid in the file.
1218 */ 1218 */
1219 f = fopen(options.pid_file, "wb"); 1219 f = fopen(options.pid_file, "wb");
1220 if (f) { 1220 if (f == NULL) {
1221 error("Couldn't create pid file \"%s\": %s",
1222 options.pid_file, strerror(errno));
1223 } else {
1221 fprintf(f, "%ld\n", (long) getpid()); 1224 fprintf(f, "%ld\n", (long) getpid());
1222 fclose(f); 1225 fclose(f);
1223 } 1226 }