aboutsummaryrefslogtreecommitdiff
path: root/sshpty.c
diff options
context:
space:
mode:
Diffstat (limited to 'sshpty.c')
-rw-r--r--sshpty.c10
1 files changed, 3 insertions, 7 deletions
diff --git a/sshpty.c b/sshpty.c
index cae0b977a585..0a82b7d3bea9 100644
--- a/sshpty.c
+++ b/sshpty.c
@@ -22,18 +22,14 @@
#include <errno.h>
#include <fcntl.h>
#include <grp.h>
-#ifdef HAVE_PATHS_H
-# include <paths.h>
-#endif
+#include <paths.h>
#include <pwd.h>
#include <stdarg.h>
#include <stdio.h>
#include <string.h>
#include <termios.h>
-#ifdef HAVE_UTIL_H
-# include <util.h>
-#endif
#include <unistd.h>
+#include <util.h>
#include "sshpty.h"
#include "log.h"
@@ -173,7 +169,7 @@ pty_setowner(struct passwd *pw, const char *tty)
/* Determine the group to make the owner of the tty. */
grp = getgrnam("tty");
if (grp == NULL)
- debug("%s: no tty group", __func__);
+ debug_f("no tty group");
gid = (grp != NULL) ? grp->gr_gid : pw->pw_gid;
mode = (grp != NULL) ? 0620 : 0600;