X-Git-Url: http://git.ozlabs.org/?p=ppp.git;a=blobdiff_plain;f=pppd%2Foptions.c;h=ef1fc8a3c008b74494c63bc69dcddbae581dad8c;hp=a8ded25a9bc90666c736075c25a8db747e5e8b8c;hb=21befb77bf612913b9fe18e9aef6cb726ee7ae68;hpb=d9bd48c35d1c5d6c26dd746efd93edb4d0de7745 diff --git a/pppd/options.c b/pppd/options.c index a8ded25..ef1fc8a 100644 --- a/pppd/options.c +++ b/pppd/options.c @@ -18,7 +18,7 @@ */ #ifndef lint -static char rcsid[] = "$Id: options.c,v 1.9 1994/05/25 06:25:48 paulus Exp $"; +static char rcsid[] = "$Id: options.c,v 1.10 1994/05/27 00:43:34 paulus Exp $"; #endif #include @@ -835,6 +835,10 @@ setupapfile(argv) fprintf(stderr, "unable to open user login data file %s\n", *argv); return 0; } + if (!readable(fileno(ufile))) { + fprintf(stderr, "%s: access denied\n", *argv); + return 0; + } check_access(ufile, *argv); /* get username */