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

(-)main.c.old (-4 / +1 lines)
Lines 37-43 Link Here
37
#include <sys/time.h>
37
#include <sys/time.h>
38
#include <termios.h>
38
#include <termios.h>
39
#include <unistd.h>
39
#include <unistd.h>
40
#include <sys/stat.h>
41
40
42
#ifndef NOALIAS
41
#ifndef NOALIAS
43
#ifdef __FreeBSD__
42
#ifdef __FreeBSD__
Lines 304-312 Link Here
304
303
305
    snprintf(conf, sizeof conf, "%s/%s", _PATH_PPP, CONFFILE);
304
    snprintf(conf, sizeof conf, "%s/%s", _PATH_PPP, CONFFILE);
306
    do {
305
    do {
307
      struct stat sb;
306
      if (!access(conf, W_OK)) {
308
309
      if (stat(conf,&sb) || (sb.st_mode & S_IWOTH)) {
310
        log_Printf(LogALERT, "ppp: Access violation: Please protect %s\n",
307
        log_Printf(LogALERT, "ppp: Access violation: Please protect %s\n",
311
                   conf);
308
                   conf);
312
        return -1;
309
        return -1;

Return to bug 13009