FreeBSD Bugzilla – Attachment 5444 Details for
Bug 13009
ppp(8) does draconian permission checks on its config file
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
Remember
[x]
|
Forgot Password
Login:
[x]
[patch]
file.diff
file.diff (text/plain), 580 bytes, created by
Anthony Kimball - High Performance Computing
on 1999-08-07 08:30:01 UTC
(
hide
)
Description:
file.diff
Filename:
MIME Type:
Creator:
Anthony Kimball - High Performance Computing
Created:
1999-08-07 08:30:01 UTC
Size:
580 bytes
patch
obsolete
>diff -u main.c main.c.old >--- main.c Sat Aug 7 02:13:29 1999 >+++ main.c.old Sun May 2 03:59:47 1999 >@@ -37,7 +37,6 @@ > #include <sys/time.h> > #include <termios.h> > #include <unistd.h> >-#include <sys/stat.h> > > #ifndef NOALIAS > #ifdef __FreeBSD__ >@@ -304,9 +303,7 @@ > > snprintf(conf, sizeof conf, "%s/%s", _PATH_PPP, CONFFILE); > do { >- struct stat sb; >- >- if (stat(conf,&sb) || (sb.st_mode & S_IWOTH)) { >+ if (!access(conf, W_OK)) { > log_Printf(LogALERT, "ppp: Access violation: Please protect %s\n", > conf); > return -1;
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 13009
: 5444