Sisyphus repository
Last update: 1 october 2023 | SRPMs: 18631 | Visits: 37908353
en ru br
ALT Linux repos
S:2.5.0-alt1
5.0: 2.4.4-alt11
4.1: 2.4.4-alt10.M41.1
4.0: 2.4.4-alt10
+updates:2.4.4-alt10
3.0: 2.4.2-alt6
+updates:2.4.2-alt6.M30.1

Group :: System/Servers
RPM: ppp

 Main   Changelog   Spec   Patches   Sources   Download   Gear   Bugs and FR  Repocop 

Patch: ppp-2.4.4-alt-leave-ttyperms-alone.patch
Download


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;
 
design & coding: Vladimir Lettiev aka crux © 2004-2005, Andrew Avramenko aka liks © 2007-2008
current maintainer: Michael Shigorin