if (config->verbose) {
apr_finfo_t finfo;
apr_int32_t wanted = APR_FINFO_NAME;
- if (apr_file_info_get(&finfo, wanted, file) == APR_SUCCESS) {
- fprintf(stderr, "Closing file %s (%s)\n", finfo.name, finfo.fname);
+ apr_status_t rv = apr_file_info_get(&finfo, wanted, file);
+ if ((rv == APR_SUCCESS) || (rv == APR_INCOMPLETE)) {
+ if (finfo.valid & APR_FINFO_NAME) {
+ fprintf(stderr, "Closing file %s (%s)\n", finfo.name, finfo.fname);
+ } else {
+ fprintf(stderr, "Closing file %s\n", finfo.fname);
+ }
}
}
apr_file_close(file);