mirror of
git://git.gnupg.org/gnupg.git
synced 2024-12-22 10:19:57 +01:00
Fix last change
This commit is contained in:
parent
d4d61b87f1
commit
7f6fba3437
@ -1404,7 +1404,7 @@ cmd_killdirmngr (assuan_context_t ctx, char *line)
|
|||||||
assuan_peercred_t cred;
|
assuan_peercred_t cred;
|
||||||
|
|
||||||
ec = gpg_err_code (assuan_get_peercred (ctx, &cred));
|
ec = gpg_err_code (assuan_get_peercred (ctx, &cred));
|
||||||
if (!ec && cred.uid)
|
if (!ec && cred->uid)
|
||||||
ec = GPG_ERR_EPERM; /* Only root may terminate. */
|
ec = GPG_ERR_EPERM; /* Only root may terminate. */
|
||||||
if (ec)
|
if (ec)
|
||||||
return set_error (ec, "no permission to kill this process");
|
return set_error (ec, "no permission to kill this process");
|
||||||
@ -1436,7 +1436,7 @@ cmd_reloaddirmngr (assuan_context_t ctx, char *line)
|
|||||||
assuan_peercred_t cred;
|
assuan_peercred_t cred;
|
||||||
|
|
||||||
ec = gpg_err_code (assuan_get_peercred (ctx, &cred));
|
ec = gpg_err_code (assuan_get_peercred (ctx, &cred));
|
||||||
if (!ec && cred.uid)
|
if (!ec && cred->uid)
|
||||||
ec = GPG_ERR_EPERM; /* Only root may terminate. */
|
ec = GPG_ERR_EPERM; /* Only root may terminate. */
|
||||||
if (ec)
|
if (ec)
|
||||||
return set_error (ec, "no permission to reload this process");
|
return set_error (ec, "no permission to reload this process");
|
||||||
|
Loading…
x
Reference in New Issue
Block a user