From 21befb77bf612913b9fe18e9aef6cb726ee7ae68 Mon Sep 17 00:00:00 2001 From: Paul Mackerras Date: Fri, 27 May 1994 00:43:34 +0000 Subject: [PATCH 1/1] check permissions on file specified for +ua option --- pppd/options.c | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) 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 */ -- 2.39.2