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

Diff for /src/usr.bin/su/su.c between version 1.73 and 1.74

version 1.73, 2019/01/28 01:38:06 version 1.74, 2019/06/19 16:26:27
Line 229 
Line 229 
   
         if (!altshell) {          if (!altshell) {
                 if (asme) {                  if (asme) {
                         /* if asme and non-std target shell, must be root */                          /* must be root to override non-std target shell */
                         if (ruid && !chshell(shell))                          if (ruid && !chshell(pwd->pw_shell))
                                 auth_errx(as, 1, "permission denied (shell).");                                  auth_errx(as, 1, "permission denied (shell).");
                 } else if (pwd->pw_shell && *pwd->pw_shell) {                  } else if (pwd->pw_shell && *pwd->pw_shell) {
                         if ((shell = strdup(pwd->pw_shell)) == NULL)                          if ((shell = strdup(pwd->pw_shell)) == NULL)

Legend:
Removed from v.1.73  
changed lines
  Added in v.1.74