diff options
Diffstat (limited to 'sshpty.c')
-rw-r--r-- | sshpty.c | 10 |
1 files changed, 3 insertions, 7 deletions
@@ -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; |