|
Lines 1885-1891
read_config_file_depth(const char *filen
Link Here
|
| 1885 |
int flags, int *activep, int *want_final_pass, int depth) |
1885 |
int flags, int *activep, int *want_final_pass, int depth) |
| 1886 |
{ |
1886 |
{ |
| 1887 |
FILE *f; |
1887 |
FILE *f; |
| 1888 |
char *line = NULL; |
1888 |
char *cp, *line = NULL; |
| 1889 |
size_t linesize = 0; |
1889 |
size_t linesize = 0; |
| 1890 |
int linenum; |
1890 |
int linenum; |
| 1891 |
int bad_options = 0; |
1891 |
int bad_options = 0; |
|
Lines 1916-1921
read_config_file_depth(const char *filen
Link Here
|
| 1916 |
while (getline(&line, &linesize, f) != -1) { |
1916 |
while (getline(&line, &linesize, f) != -1) { |
| 1917 |
/* Update line number counter. */ |
1917 |
/* Update line number counter. */ |
| 1918 |
linenum++; |
1918 |
linenum++; |
|
|
1919 |
/* Trim out comments. */ |
| 1920 |
if ((cp = strchr(line, '#')) != NULL) |
| 1921 |
memcpy(cp, "\n", 2); |
| 1919 |
if (process_config_line_depth(options, pw, host, original_host, |
1922 |
if (process_config_line_depth(options, pw, host, original_host, |
| 1920 |
line, filename, linenum, activep, flags, want_final_pass, |
1923 |
line, filename, linenum, activep, flags, want_final_pass, |
| 1921 |
depth) != 0) |
1924 |
depth) != 0) |