View | Details | Raw Unified | Return to bug 2431
Collapse All | Expand All

(-)a/readconf.c (-2 / +2 lines)
Lines 827-837 process_config_line_depth(Options *options, struct passwd *pw, const char *host, Link Here
827
		activep = &cmdline;
827
		activep = &cmdline;
828
	}
828
	}
829
829
830
	/* Strip trailing whitespace */
830
	/* Strip trailing whitespace. Allow \f (form feed) at EOL only */
831
	if ((len = strlen(line)) == 0)
831
	if ((len = strlen(line)) == 0)
832
		return 0;
832
		return 0;
833
	for (len--; len > 0; len--) {
833
	for (len--; len > 0; len--) {
834
		if (strchr(WHITESPACE, line[len]) == NULL)
834
		if (strchr(WHITESPACE "\f", line[len]) == NULL)
835
			break;
835
			break;
836
		line[len] = '\0';
836
		line[len] = '\0';
837
	}
837
	}
(-)a/servconf.c (+9 lines)
Lines 920-925 process_server_config_line(ServerOptions *options, char *line, Link Here
920
	long long val64;
920
	long long val64;
921
	const struct multistate *multistate_ptr;
921
	const struct multistate *multistate_ptr;
922
922
923
	/* Strip trailing whitespace. Allow \f (form feed) at EOL only */
924
	if ((len = strlen(line)) == 0)
925
		return 0;
926
	for (len--; len > 0; len--) {
927
		if (strchr(WHITESPACE "\f", line[len]) == NULL)
928
			break;
929
		line[len] = '\0';
930
	}
931
923
	cp = line;
932
	cp = line;
924
	if ((arg = strdelim(&cp)) == NULL)
933
	if ((arg = strdelim(&cp)) == NULL)
925
		return 0;
934
		return 0;

Return to bug 2431