diff options
author | Damien Miller <djm@mindrot.org> | 2009-02-21 22:47:02 +0100 |
---|---|---|
committer | Damien Miller <djm@mindrot.org> | 2009-02-21 22:47:02 +0100 |
commit | 9eab9564d5185b52f33f4a265914d32a3147338e (patch) | |
tree | 86145fce64db1121ce8920426693f472c8f7d373 /misc.c | |
parent | - (djm) [contrib/caldera/openssh.spec contrib/redhat/openssh.spec] (diff) | |
download | openssh-9eab9564d5185b52f33f4a265914d32a3147338e.tar.xz openssh-9eab9564d5185b52f33f4a265914d32a3147338e.zip |
- (djm) OpenBSD CVS Sync
- tobias@cvs.openbsd.org 2009/02/21 19:32:04
[misc.c sftp-server-main.c ssh-keygen.c]
Added missing newlines in error messages.
ok dtucker
Diffstat (limited to 'misc.c')
-rw-r--r-- | misc.c | 7 |
1 files changed, 4 insertions, 3 deletions
@@ -1,4 +1,4 @@ -/* $OpenBSD: misc.c,v 1.70 2009/01/22 10:02:34 djm Exp $ */ +/* $OpenBSD: misc.c,v 1.71 2009/02/21 19:32:04 tobias Exp $ */ /* * Copyright (c) 2000 Markus Friedl. All rights reserved. * Copyright (c) 2005,2006 Damien Miller. All rights reserved. @@ -714,7 +714,8 @@ sanitise_stdfd(void) int nullfd, dupfd; if ((nullfd = dupfd = open(_PATH_DEVNULL, O_RDWR)) == -1) { - fprintf(stderr, "Couldn't open /dev/null: %s", strerror(errno)); + fprintf(stderr, "Couldn't open /dev/null: %s\n", + strerror(errno)); exit(1); } while (++dupfd <= 2) { @@ -722,7 +723,7 @@ sanitise_stdfd(void) if (fcntl(dupfd, F_GETFL, 0) >= 0) continue; if (dup2(nullfd, dupfd) == -1) { - fprintf(stderr, "dup2: %s", strerror(errno)); + fprintf(stderr, "dup2: %s\n", strerror(errno)); exit(1); } } |