[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.77 and 1.78

version 1.77, 2019/06/16 18:16:34 version 1.78, 2019/06/17 19:51:23
Line 286 
Line 286 
         const char *confpath = NULL;          const char *confpath = NULL;
         char *shargv[] = { NULL, NULL };          char *shargv[] = { NULL, NULL };
         char *sh;          char *sh;
           const char *p;
         const char *cmd;          const char *cmd;
         char cmdline[LINE_MAX];          char cmdline[LINE_MAX];
         char mypwbuf[_PW_BUF_LEN], targpwbuf[_PW_BUF_LEN];          char mypwbuf[_PW_BUF_LEN], targpwbuf[_PW_BUF_LEN];
Line 401 
Line 402 
   
                 authuser(mypw->pw_name, login_style, rule->options & PERSIST);                  authuser(mypw->pw_name, login_style, rule->options & PERSIST);
         }          }
   
           if ((p = getenv("PATH")) != NULL)
                   formerpath = strdup(p);
           if (formerpath == NULL)
                   formerpath = "";
   
         if (unveil(_PATH_LOGIN_CONF, "r") == -1)          if (unveil(_PATH_LOGIN_CONF, "r") == -1)
                 err(1, "unveil");                  err(1, "unveil");

Legend:
Removed from v.1.77  
changed lines
  Added in v.1.78