Call gettext() on parameters for warning()/warningx() instead of
having warning() do it for us.
This commit is contained in:
@@ -248,14 +248,14 @@ static int sudo_sss_open(struct sudo_nss *nss)
|
||||
/* Load symbols */
|
||||
handle->ssslib = dlopen(path, RTLD_LAZY);
|
||||
if (handle->ssslib == NULL) {
|
||||
warningx(N_("Unable to dlopen %s: %s"), path, dlerror());
|
||||
warningx(N_("Unable to initialize SSS source. Is SSSD installed on your machine?"));
|
||||
warningx(_("Unable to dlopen %s: %s"), path, dlerror());
|
||||
warningx(_("Unable to initialize SSS source. Is SSSD installed on your machine?"));
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
|
||||
handle->fn_send_recv = dlsym(handle->ssslib, "sss_sudo_send_recv");
|
||||
if (handle->fn_send_recv == NULL) {
|
||||
warningx(N_("unable to find symbol \"%s\" in %s"), path,
|
||||
warningx(_("unable to find symbol \"%s\" in %s"), path,
|
||||
"sss_sudo_send_recv");
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
@@ -263,28 +263,28 @@ static int sudo_sss_open(struct sudo_nss *nss)
|
||||
handle->fn_send_recv_defaults =
|
||||
dlsym(handle->ssslib, "sss_sudo_send_recv_defaults");
|
||||
if (handle->fn_send_recv_defaults == NULL) {
|
||||
warningx(N_("unable to find symbol \"%s\" in %s"), path,
|
||||
warningx(_("unable to find symbol \"%s\" in %s"), path,
|
||||
"sss_sudo_send_recv_defaults");
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
|
||||
handle->fn_free_result = dlsym(handle->ssslib, "sss_sudo_free_result");
|
||||
if (handle->fn_free_result == NULL) {
|
||||
warningx(N_("unable to find symbol \"%s\" in %s"), path,
|
||||
warningx(_("unable to find symbol \"%s\" in %s"), path,
|
||||
"sss_sudo_free_result");
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
|
||||
handle->fn_get_values = dlsym(handle->ssslib, "sss_sudo_get_values");
|
||||
if (handle->fn_get_values == NULL) {
|
||||
warningx(N_("unable to find symbol \"%s\" in %s"), path,
|
||||
warningx(_("unable to find symbol \"%s\" in %s"), path,
|
||||
"sss_sudo_get_values");
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
|
||||
handle->fn_free_values = dlsym(handle->ssslib, "sss_sudo_free_values");
|
||||
if (handle->fn_free_values == NULL) {
|
||||
warningx(N_("unable to find symbol \"%s\" in %s"), path,
|
||||
warningx(_("unable to find symbol \"%s\" in %s"), path,
|
||||
"sss_sudo_free_values");
|
||||
debug_return_int(EFAULT);
|
||||
}
|
||||
|
Reference in New Issue
Block a user