chiark
/
gitweb
/
~mdw
/
secnet
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
udp: Report authbind exit status as errno value if it seems appropriate
[secnet]
/
udp.c
diff --git
a/udp.c
b/udp.c
index a6ab49a04000f93c44df1ac9a31ef2f3c4a36374..838fd5141db605bc2f2037c315c5cd272ff97245 100644
(file)
--- a/
udp.c
+++ b/
udp.c
@@
-259,7
+259,14
@@
bool_t udp_make_socket(struct udpcommon *uc, struct udpsock *us,
FAIL("waitpid for authbind");
}
if (status) {
FAIL("waitpid for authbind");
}
if (status) {
- lg_exitstatus(FAIL_LG,status,"authbind");
+ 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);
+ } else {
+ lg_exitstatus(FAIL_LG,status,"authbind");
+ }
goto failed;
}
} else {
goto failed;
}
} else {