Annotation of /trunk/ppp/patches/ppp-2.4.4-dev-ppp.patch
Parent Directory | Revision Log
Revision 797 -
(hide annotations)
(download)
Mon May 11 09:46:04 2009 UTC (15 years, 4 months ago) by niro
File size: 791 byte(s)
Mon May 11 09:46:04 2009 UTC (15 years, 4 months ago) by niro
File size: 791 byte(s)
-added patches from gentoo
1 | niro | 797 | diff -Nru ppp-2.4.4.orig/pppd/sys-linux.c ppp-2.4.4/pppd/sys-linux.c |
2 | --- ppp-2.4.4.orig/pppd/sys-linux.c 2007-08-17 10:53:55.000000000 +0300 | ||
3 | +++ ppp-2.4.4/pppd/sys-linux.c 2007-08-17 10:56:29.000000000 +0300 | ||
4 | @@ -2051,10 +2051,10 @@ | ||
5 | kernel_version = KVERSION(osmaj, osmin, ospatch); | ||
6 | |||
7 | fd = open("/dev/ppp", O_RDWR); | ||
8 | -#if 0 | ||
9 | +/* #if 0 */ | ||
10 | if (fd < 0 && errno == ENOENT) { | ||
11 | /* try making it and see if that helps. */ | ||
12 | - if (mknod("/dev/ppp", S_IFCHR | S_IRUSR | S_IWUSR, | ||
13 | + if (mknod("/dev/ppp", S_IFCHR | S_IRUSR | S_IWUSR | S_IRGRP | S_IWGRP, | ||
14 | makedev(108, 0)) >= 0) { | ||
15 | fd = open("/dev/ppp", O_RDWR); | ||
16 | if (fd >= 0) | ||
17 | @@ -2065,7 +2065,7 @@ | ||
18 | fd = open("/dev/ppp", O_RDWR); | ||
19 | } | ||
20 | } | ||
21 | -#endif /* 0 */ | ||
22 | +/* #endif /* 0 */ | ||
23 | if (fd >= 0) { | ||
24 | new_style_driver = 1; | ||
25 |