View | Details | Raw Unified | Return to bug 3288 | Differences between
and this patch

Collapse All | Expand All

(-)a/readconf.c (-3 / +8 lines)
Lines 2133-2140 read_config_file_depth(const char *filename, struct passwd *pw, Link Here
2133
		 * NB - preserve newlines, they are needed to reproduce
2133
		 * NB - preserve newlines, they are needed to reproduce
2134
		 * line numbers later for error messages.
2134
		 * line numbers later for error messages.
2135
		 */
2135
		 */
2136
		if ((cp = strchr(line, '#')) != NULL)
2136
		for (cp = line; (cp - line) < linesize && *cp; cp++) {
2137
			*cp = '\0';
2137
			if (!isspace(*cp)) {
2138
				if (*cp == '#') {
2139
					*cp = '\0';
2140
				}
2141
				break;
2142
			}
2143
		}
2138
		if (process_config_line_depth(options, pw, host, original_host,
2144
		if (process_config_line_depth(options, pw, host, original_host,
2139
		    line, filename, linenum, activep, flags, want_final_pass,
2145
		    line, filename, linenum, activep, flags, want_final_pass,
2140
		    depth) != 0)
2146
		    depth) != 0)
2141
- 

Return to bug 3288