summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormarkus <markus@openbsd.org>2000-07-14 22:59:46 +0000
committermarkus <markus@openbsd.org>2000-07-14 22:59:46 +0000
commitcc97eea725ce3b7768dc983d95e95204b8cb59c9 (patch)
tree03b3361a3a2a10d9b3a7d83945ef6203667a3a22
parentsync (diff)
downloadwireguard-openbsd-cc97eea725ce3b7768dc983d95e95204b8cb59c9.tar.xz
wireguard-openbsd-cc97eea725ce3b7768dc983d95e95204b8cb59c9.zip
allow leading whitespace. ok niels
-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);