summaryrefslogtreecommitdiff
path: root/readconf.c
diff options
context:
space:
mode:
Diffstat (limited to 'readconf.c')
-rw-r--r--readconf.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/readconf.c b/readconf.c
index 72b4a637c..6c934406e 100644
--- a/readconf.c
+++ b/readconf.c
@@ -1,4 +1,4 @@
1/* $OpenBSD: readconf.c,v 1.266 2017/01/30 00:38:50 djm Exp $ */ 1/* $OpenBSD: readconf.c,v 1.267 2017/02/03 05:05:56 djm Exp $ */
2/* 2/*
3 * Author: Tatu Ylonen <ylo@cs.hut.fi> 3 * Author: Tatu Ylonen <ylo@cs.hut.fi>
4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland 4 * Copyright (c) 1995 Tatu Ylonen <ylo@cs.hut.fi>, Espoo, Finland
@@ -842,11 +842,11 @@ process_config_line_depth(Options *options, struct passwd *pw, const char *host,
842 activep = &cmdline; 842 activep = &cmdline;
843 } 843 }
844 844
845 /* Strip trailing whitespace */ 845 /* Strip trailing whitespace. Allow \f (form feed) at EOL only */
846 if ((len = strlen(line)) == 0) 846 if ((len = strlen(line)) == 0)
847 return 0; 847 return 0;
848 for (len--; len > 0; len--) { 848 for (len--; len > 0; len--) {
849 if (strchr(WHITESPACE, line[len]) == NULL) 849 if (strchr(WHITESPACE "\f", line[len]) == NULL)
850 break; 850 break;
851 line[len] = '\0'; 851 line[len] = '\0';
852 } 852 }