Closed staticfox closed 5 years ago
Thanks, I'll add something for that. We can't use log_write() at that point, because the close_connections() call just before the execvp() will close every file descriptor after stderr, but I think stderr is wired up to report things like that.
Fixed in commit d0f081b96dc815e53b52b9820d09e1472225610e.
The result of
execvp(iauth->i_argv[0], iauth->i_argv)
should probably (really) be captured and checked to see if-1
was returned. If it was, let the opers know by sending a message +strerror(errno)
(and write to log). This all happens while we're still setting file descriptors though, so maybe it'd be kind of hairy to do.In my case, the only indication that something went wrong was IRCu saying "IAuth crashed fast" when in reality, it was not even being ran at all since execvp returned -1 with errno being set to ENOENT.
(untested) Maybe something like: