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

Diff for /src/usr.bin/chpass/chpass.c between version 1.32 and 1.33

version 1.32, 2005/12/12 20:43:10 version 1.33, 2007/01/15 08:14:21
Line 80 
Line 80 
 int  int
 main(int argc, char *argv[])  main(int argc, char *argv[])
 {  {
         struct passwd *pw = NULL, *opw, lpw;          struct passwd *pw = NULL, *opw = NULL, lpw;
         int i, ch, pfd, tfd, dfd;          int i, ch, pfd, tfd, dfd;
         char *arg = NULL;          char *arg = NULL;
         sigset_t fullset;          sigset_t fullset;
Line 156 
Line 156 
                 }                  }
   
         if (op == LOADENTRY) {          if (op == LOADENTRY) {
                   if (argc != 0)
                           errx(1, "option -a does not accept user argument");
                 if (uid)                  if (uid)
                         baduser();                          baduser();
                 pw = &lpw;                  pw = &lpw;
                 if (!pw_scan(arg, pw, NULL))                  if (!pw_scan(arg, pw, NULL))
                         exit(1);                          exit(1);
                   opw = getpwnam(pw->pw_name);
         }          }
         if ((opw = pw_dup(pw)) == NULL)          if (opw == NULL && (opw = pw_dup(pw)) == NULL)
                 err(1, NULL);                  err(1, NULL);
   
         /* Edit the user passwd information if requested. */          /* Edit the user passwd information if requested. */

Legend:
Removed from v.1.32  
changed lines
  Added in v.1.33