summary |
shortlog |
log |
commit | commitdiff |
tree
raw |
patch |
inline | side by side (from parent 1:
656df7e)
Report the address and the authbind helper pathname.
Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
if (uc->authbind) {
pid_t c;
int status;
if (uc->authbind) {
pid_t c;
int status;
+ char desc[200];
+ snprintf(desc,sizeof(desc),"authbind for %s: %s",
+ iaddr_to_string(addr), uc->authbind);
/* XXX this fork() and waitpid() business needs to be hidden
in some system-specific library functions. */
/* XXX this fork() and waitpid() business needs to be hidden
in some system-specific library functions. */
if (WIFEXITED(status) && WEXITSTATUS(status)<127) {
int es=WEXITSTATUS(status);
lg_perror(FAIL_LG,es,
if (WIFEXITED(status) && WEXITSTATUS(status)<127) {
int es=WEXITSTATUS(status);
lg_perror(FAIL_LG,es,
- "authbind exited with error exit status %d;"
- " indicates error",es);
+ "%s exited with error exit status %d;"
+ " indicates error",desc,es);
- lg_exitstatus(FAIL_LG,status,"authbind");
+ lg_exitstatus(FAIL_LG,status,desc);