diff options
author | Ed Maste <emaste@FreeBSD.org> | 2025-10-06 12:29:14 +0000 |
---|---|---|
committer | Ed Maste <emaste@FreeBSD.org> | 2025-10-06 12:29:14 +0000 |
commit | 6409980cbba7323bd1c86249ed16f8bea9fa5490 (patch) | |
tree | 3710eb5988e5c6b0dd82c46413e96bba7cd18544 /sshpty.c | |
parent | 9792a032f0a99557271d6b7f7b0a955386c1fdbe (diff) |
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; |