View | Details | Raw Unified | Return to bug 6042
Collapse All | Expand All

(-)ppp-2.4.2-orig/pppd/tty.c (-1 / +1 lines)
Lines 589-595 Link Here
589
		 * Do the equivalent of `mesg n' to stop broadcast messages.
589
		 * Do the equivalent of `mesg n' to stop broadcast messages.
590
		 */
590
		 */
591
		if (fstat(ttyfd, &statbuf) < 0
591
		if (fstat(ttyfd, &statbuf) < 0
592
		    || fchmod(ttyfd, statbuf.st_mode & ~(S_IWGRP | S_IWOTH)) < 0) {
592
		    || fchmod(ttyfd, statbuf.st_mode & ~S_IWOTH) < 0) {
593
			warn("Couldn't restrict write permissions to %s: %m", devnam);
593
			warn("Couldn't restrict write permissions to %s: %m", devnam);
594
		} else
594
		} else
595
			tty_mode = statbuf.st_mode;
595
			tty_mode = statbuf.st_mode;

Return to bug 6042