|
Lines 773-784
parse_filename:
Link Here
|
| 773 |
if (!arg || *arg == '\0') |
773 |
if (!arg || *arg == '\0') |
| 774 |
fatal("%s line %d: missing file name.", |
774 |
fatal("%s line %d: missing file name.", |
| 775 |
filename, linenum); |
775 |
filename, linenum); |
|
|
776 |
cp = tilde_expand_filename(arg, getuid()); |
| 777 |
if (*cp != '/') |
| 778 |
fatal("%s line %d: path is not absolute.", |
| 779 |
filename, linenum); |
| 776 |
if (*activep && *charptr == NULL) { |
780 |
if (*activep && *charptr == NULL) { |
| 777 |
*charptr = tilde_expand_filename(arg, getuid()); |
781 |
*charptr = cp; |
| 778 |
/* increase optional counter */ |
782 |
/* increase optional counter */ |
| 779 |
if (intptr != NULL) |
783 |
if (intptr != NULL) |
| 780 |
*intptr = *intptr + 1; |
784 |
*intptr = *intptr + 1; |
| 781 |
} |
785 |
} else |
|
|
786 |
xfree(cp); |
| 782 |
break; |
787 |
break; |
| 783 |
|
788 |
|
| 784 |
case sPidFile: |
789 |
case sPidFile: |
|
Lines 1157-1163
parse_flag:
Link Here
|
| 1157 |
charptr = (opcode == sAuthorizedKeysFile) ? |
1162 |
charptr = (opcode == sAuthorizedKeysFile) ? |
| 1158 |
&options->authorized_keys_file : |
1163 |
&options->authorized_keys_file : |
| 1159 |
&options->authorized_keys_file2; |
1164 |
&options->authorized_keys_file2; |
| 1160 |
goto parse_filename; |
1165 |
arg = strdelim(&cp); |
|
|
1166 |
if (!arg || *arg == '\0') |
| 1167 |
fatal("%s line %d: missing file name.", |
| 1168 |
filename, linenum); |
| 1169 |
if (*activep && *charptr == NULL) |
| 1170 |
*charptr = tilde_expand_filename(arg, getuid()); |
| 1171 |
break; |
| 1161 |
|
1172 |
|
| 1162 |
case sClientAliveInterval: |
1173 |
case sClientAliveInterval: |
| 1163 |
intptr = &options->client_alive_interval; |
1174 |
intptr = &options->client_alive_interval; |