summaryrefslogtreecommitdiff
path: root/sftp.c
diff options
context:
space:
mode:
authorBen Lindstrom <mouring@eviladmin.org>2002-04-02 21:06:18 +0000
committerBen Lindstrom <mouring@eviladmin.org>2002-04-02 21:06:18 +0000
commit2f3d52a2d67b547c5f06676c52396fd8133df32b (patch)
tree2d31a2907651c8eeac17ea4ede0b688056c5c118 /sftp.c
parenteecdf235310bd3088acc547607452b657dd09f5a (diff)
- markus@cvs.openbsd.org 2002/04/02 17:37:48
[sftp.c] always call log_init()
Diffstat (limited to 'sftp.c')
-rw-r--r--sftp.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/sftp.c b/sftp.c
index e4086549c..9a6488fa1 100644
--- a/sftp.c
+++ b/sftp.c
@@ -24,7 +24,7 @@
24 24
25#include "includes.h" 25#include "includes.h"
26 26
27RCSID("$OpenBSD: sftp.c,v 1.28 2002/03/30 18:51:15 markus Exp $"); 27RCSID("$OpenBSD: sftp.c,v 1.29 2002/04/02 17:37:48 markus Exp $");
28 28
29/* XXX: short-form remote directory listings (like 'ls -C') */ 29/* XXX: short-form remote directory listings (like 'ls -C') */
30 30
@@ -181,6 +181,8 @@ main(int argc, char **argv)
181 } 181 }
182 } 182 }
183 183
184 log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1);
185
184 if (sftp_direct == NULL) { 186 if (sftp_direct == NULL) {
185 if (optind == argc || argc > (optind + 2)) 187 if (optind == argc || argc > (optind + 2))
186 usage(); 188 usage();
@@ -210,7 +212,6 @@ main(int argc, char **argv)
210 usage(); 212 usage();
211 } 213 }
212 214
213 log_init(argv[0], ll, SYSLOG_FACILITY_USER, 1);
214 addargs(&args, "-oProtocol %d", sshver); 215 addargs(&args, "-oProtocol %d", sshver);
215 216
216 /* no subsystem if the server-spec contains a '/' */ 217 /* no subsystem if the server-spec contains a '/' */