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 :: Networking/Other
RPM: ppp
Main Changelog Spec Patches Sources Download Gear Bugs and FR Repocop
Patch: ppp-2.4.2-alt-leave-ttyperms-alone.patch
Download
Download
diff -Naur ppp-2.4.2-orig/pppd/tty.c ppp-2.4.2/pppd/tty.c
--- ppp-2.4.2-orig/pppd/tty.c 2004-01-13 06:17:59 +0200
+++ ppp-2.4.2/pppd/tty.c 2006-11-13 15:10:08 +0200
@@ -589,7 +589,7 @@
* 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;