| 2912 | } |
| 2913 | |
| 2914 | static int test_iffile_section(cmd_parms *cmd, const char *arg) |
| 2915 | { |
| 2916 | const char *relative; |
| 2917 | apr_finfo_t sb; |
| 2918 | |
| 2919 | /* |
| 2920 | * At least on Windows, if the path we are testing is not valid (for example |
| 2921 | * a path on a USB key that is not plugged), 'ap_server_root_relative()' will |
| 2922 | * return NULL. In such a case, consider that the file is not there and that |
| 2923 | * the section should be skipped. |
| 2924 | */ |
| 2925 | relative = ap_server_root_relative(cmd->temp_pool, arg); |
| 2926 | return (relative && |
| 2927 | (apr_stat(&sb, relative, APR_FINFO_TYPE, cmd->temp_pool) == APR_SUCCESS)); |
| 2928 | } |
| 2929 | |
| 2930 | static int test_ifdirective_section(cmd_parms *cmd, const char *arg) |
| 2931 | { |
nothing calls this directly
no test coverage detected