* OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
*/
+#include "config.h"
+
#include <sys/types.h>
#include <sys/wait.h>
#include "includes.h"
+#ifndef HOST_NAME_MAX
+#define HOST_NAME_MAX _POSIX_HOST_NAME_MAX
+#endif
+
#define PAM_SERVICE_NAME "doas"
static pam_handle_t *pamh = NULL;
}
/* return as child */
- if (child == 0)
+ if (child == 0) {
+#ifdef USE_TIMESTAMP
+ if (fd != -1)
+ close(fd);
+#endif
return;
+ }
#ifdef USE_TIMESTAMP
if (fd != -1) {