summaryrefslogtreecommitdiff
path: root/usr.bin/ssh/sftp-int.c
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>2001-03-04 17:42:29 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>2001-03-04 17:42:29 +0000
commite21db807bf9d4fd5a545b466f67e236b5c5be280 (patch)
tree74dfdc3c8e799010df84750c05871f935ea20111 /usr.bin/ssh/sftp-int.c
parent94ffc069095b37738b1b0bba2d4f37da82a2169d (diff)
log functions should not be passed strings that end in newline as they
get passed on to syslog() and when logging to stderr, do_log() appends its own newline.
Diffstat (limited to 'usr.bin/ssh/sftp-int.c')
-rw-r--r--usr.bin/ssh/sftp-int.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.bin/ssh/sftp-int.c b/usr.bin/ssh/sftp-int.c
index 95e54a65f68..53136be0754 100644
--- a/usr.bin/ssh/sftp-int.c
+++ b/usr.bin/ssh/sftp-int.c
@@ -28,7 +28,7 @@
/* XXX: recursive operations */
#include "includes.h"
-RCSID("$OpenBSD: sftp-int.c,v 1.23 2001/03/01 02:18:04 deraadt Exp $");
+RCSID("$OpenBSD: sftp-int.c,v 1.24 2001/03/04 17:42:28 millert Exp $");
#include "buffer.h"
#include "xmalloc.h"
@@ -579,7 +579,7 @@ parse_dispatch_command(int in, int out, const char *cmd, char **pwd)
break;
case I_LPWD:
if (!getcwd(path_buf, sizeof(path_buf)))
- error("Couldn't get local cwd: %s\n",
+ error("Couldn't get local cwd: %s",
strerror(errno));
else
printf("Local working directory: %s\n",