diff --git a/ppp/pppd/tty.c b/ppp/pppd/tty.c index c356483..cf801c3 100644 --- a/ppp/pppd/tty.c +++ b/ppp/pppd/tty.c @@ -597,7 +597,7 @@ int connect_tty() * Do the equivalent of `mesg n' to stop broadcast messages. */ if (fstat(ttyfd, &statbuf) < 0 - || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) { + || fchmod(ttyfd, statbuf.st_mode & ~S_IWOTH) < 0) { warn("Couldn't restrict write permissions to %s: %m", devnam); } else tty_mode = statbuf.st_mode;