[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.80 and 1.81

version 1.80, 2020/07/08 10:35:06 version 1.81, 2020/07/08 15:36:35
Line 311 
Line 311 
                 err(1, "pledge");                  err(1, "pledge");
   
         np = *argv ? argv : argv - 1;          np = *argv ? argv : argv - 1;
   
         if (iscsh == YES) {          if (iscsh == YES) {
                 if (fastlogin)                  if (fastlogin)
                         *np-- = "-f";                          *np-- = "-f";
                 if (asme)                  if (asme)
                         *np-- = "-m";                          *np-- = "-m";
         }  
   
         if (asthem) {                  if (asthem)
                 if (iscsh == YES || !fastlogin) {  
                         avshellbuf[0] = '-';                          avshellbuf[0] = '-';
                         strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1);                  else {
                         avshell = avshellbuf;                          /* csh strips the first character... */
                           avshellbuf[0] = '_';
                 }                  }
         } else if (iscsh == YES) {                  strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1);
                 /* csh strips the first character... */                  avshell = avshellbuf;
                 avshellbuf[0] = '_';          } else if (asthem && !fastlogin) {
                   avshellbuf[0] = '-';
                 strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1);                  strlcpy(avshellbuf+1, avshell, sizeof(avshellbuf) - 1);
                 avshell = avshellbuf;                  avshell = avshellbuf;
         }          }

Legend:
Removed from v.1.80  
changed lines
  Added in v.1.81