diff options
Diffstat (limited to '')
-rw-r--r-- | lib/chowntty.c (renamed from libmisc/chowntty.c) | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libmisc/chowntty.c b/lib/chowntty.c index 8043d8c..70127f3 100644 --- a/libmisc/chowntty.c +++ b/lib/chowntty.c @@ -51,7 +51,7 @@ void chown_tty (const struct passwd *info) */ if ( (fchown (STDIN_FILENO, info->pw_uid, gid) != 0) - || (fchmod (STDIN_FILENO, (mode_t)getdef_num ("TTYPERM", 0600)) != 0)) { + || (fchmod (STDIN_FILENO, getdef_num ("TTYPERM", 0600)) != 0)) { int err = errno; FILE *shadow_logfd = log_get_logfd(); |