summaryrefslogtreecommitdiff
path: root/usr.bin
diff options
context:
space:
mode:
authorMarkus Friedl <markus@cvs.openbsd.org>2000-07-14 22:59:47 +0000
committerMarkus Friedl <markus@cvs.openbsd.org>2000-07-14 22:59:47 +0000
commitb121934a5988cd6608b2dccb71679a049e9c6eb8 (patch)
treecb9801a62677e01b125a4b81802f2c6f79ecb3ee /usr.bin
parente2fa6def2cf46c9b118af477afb4086860dd6035 (diff)
allow leading whitespace. ok niels
Diffstat (limited to 'usr.bin')
-rw-r--r--usr.bin/ssh/readconf.c4
-rw-r--r--usr.bin/ssh/servconf.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.bin/ssh/readconf.c b/usr.bin/ssh/readconf.c
index 4dfaff489ec..06cfaa1a369 100644
--- a/usr.bin/ssh/readconf.c
+++ b/usr.bin/ssh/readconf.c
@@ -14,7 +14,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: readconf.c,v 1.42 2000/07/13 22:53:21 provos Exp $");
+RCSID("$OpenBSD: readconf.c,v 1.43 2000/07/14 22:59:46 markus Exp $");
#include "ssh.h"
#include "cipher.h"
@@ -242,7 +242,7 @@ process_config_line(Options *options, const char *host,
keyword = strdelim(&s);
/* Ignore leading whitespace. */
if (*keyword == '\0')
- keyword = s;
+ keyword = strdelim(&s);
if (!*keyword || *keyword == '\n' || *keyword == '#')
return 0;
diff --git a/usr.bin/ssh/servconf.c b/usr.bin/ssh/servconf.c
index 9e85533cde2..477204cfd69 100644
--- a/usr.bin/ssh/servconf.c
+++ b/usr.bin/ssh/servconf.c
@@ -12,7 +12,7 @@
*/
#include "includes.h"
-RCSID("$OpenBSD: servconf.c,v 1.48 2000/07/13 22:53:21 provos Exp $");
+RCSID("$OpenBSD: servconf.c,v 1.49 2000/07/14 22:59:46 markus Exp $");
#include "ssh.h"
#include "servconf.h"
@@ -320,7 +320,7 @@ read_server_config(ServerOptions *options, const char *filename)
arg = strdelim(&cp);
/* Ignore leading whitespace */
if (*arg == '\0')
- arg = cp;
+ arg = strdelim(&cp);
if (!*arg || *arg == '#')
continue;
opcode = parse_token(arg, filename, linenum);