| 1962 | #endif |
| 1963 | |
| 1964 | AP_DECLARE(piped_log *) ap_open_piped_log(apr_pool_t *p, |
| 1965 | const char *program) |
| 1966 | { |
| 1967 | apr_cmdtype_e cmdtype = APR_PROGRAM_ENV; |
| 1968 | |
| 1969 | /* In 2.4 favor PROGRAM_ENV, accept "||prog" syntax for compatibility |
| 1970 | * and "|$cmd" to override the default. |
| 1971 | * Any 2.2 backport would continue to favor SHELLCMD_ENV so there |
| 1972 | * accept "||prog" to override, and "|$cmd" to ease conversion. |
| 1973 | */ |
| 1974 | if (*program == '|') |
| 1975 | ++program; |
| 1976 | if (*program == '$') { |
| 1977 | cmdtype = APR_SHELLCMD_ENV; |
| 1978 | ++program; |
| 1979 | } |
| 1980 | |
| 1981 | return ap_open_piped_log_ex(p, program, cmdtype); |
| 1982 | } |
| 1983 | |
| 1984 | AP_DECLARE(void) ap_close_piped_log(piped_log *pl) |
| 1985 | { |
no test coverage detected