[BACK]Return to doas.c CVS log [TXT][DIR] Up to [local] / src / usr.bin / doas

Diff for /src/usr.bin/doas/doas.c between version 1.35 and 1.36

version 1.35, 2015/08/12 15:59:53 version 1.36, 2015/08/13 16:27:22
Line 161 
Line 161 
         struct stat sb;          struct stat sb;
   
         yyfp = fopen(filename, "r");          yyfp = fopen(filename, "r");
         if (!yyfp) {          if (!yyfp)
                 if (checkperms)                  err(1, checkperms ? "doas is not enabled, %s" :
                         warn("doas is not enabled, %s", filename);                      "could not open config file %s", filename);
                 else  
                         warn("could not open config file %s", filename);  
                 exit(1);  
         }  
   
         if (checkperms) {          if (checkperms) {
                 if (fstat(fileno(yyfp), &sb) != 0)                  if (fstat(fileno(yyfp), &sb) != 0)

Legend:
Removed from v.1.35  
changed lines
  Added in v.1.36