KEY_WRITE,
&hKey);
- if (rv == ERROR_FILE_NOT_FOUND)
- return APR_ENODIR;
-
if (rv != ERROR_SUCCESS)
return_error(rv);
}
/* Clean up a way over complicated process.
*
- * The return value is APR_SUCCESS, APR_ENOPATH, APR_NOTFOUND, or the OS error
+ * The return value is APR_SUCCESS, APR_ENOENT, APR_NOTFOUND, or the OS error
*/
apr_status_t ap_registry_get_value(apr_pool_t *p, const char *key, const char *name, char **ppValue)
KEY_READ,
&hKey);
- if (rv == ERROR_FILE_NOT_FOUND)
- return APR_ENODIR;
-
if (rv != ERROR_SUCCESS)
return_error(rv);
*ppValue, /* for value */
&nSize); /* for size of "value" */
- if (rv == ERROR_FILE_NOT_FOUND)
- rv = APR_ENOFILE;
-
RegCloseKey(hKey);
return_error(rv);
KEY_READ,
&hKey);
- if (rv == ERROR_FILE_NOT_FOUND)
- return APR_ENODIR;
-
if (rv != ERROR_SUCCESS)
return_error(rv);
NULL, /* for value */
&nSize); /* for size of "value" */
- if (rv == ERROR_FILE_NOT_FOUND) {
- rv = APR_ENOFILE;
- }
- else if (rv != ERROR_SUCCESS) {
+ if (rv != ERROR_SUCCESS) {
return_error(rv);
}
else
0,
KEY_WRITE,
&hKey);
-
- if (rv == ERROR_FILE_NOT_FOUND)
- return APR_ENODIR;
}
if (rv != ERROR_SUCCESS)
0,
KEY_WRITE,
&hKey);
-
- if (rv == ERROR_FILE_NOT_FOUND)
- return APR_ENODIR;
}
if (rv != ERROR_SUCCESS)
apr_snprintf(conf_key, sizeof(conf_key), SERVICEPARAMS, service_name);
rv = ap_registry_get_array(p, conf_key, "ConfigArgs", &svc_args);
if (rv != APR_SUCCESS) {
- // TODO: More message?
- return (rv);
+ if (rv == ERROR_FILE_NOT_FOUND) {
+ ap_log_error(APLOG_MARK, APLOG_INFO|APLOG_NOERRNO, 0, NULL,
+ "No ConfigArgs registered for %s, perhaps "
+ "this service is not installed?",
+ service_name);
+ return APR_SUCCESS;
+ }
+ else
+ return (rv);
}
if (!svc_args || svc_args->nelts == 0) {