ViewVC Help
View File | Revision Log | Show Annotations | Download File | View Changeset | Root Listing
root/repos/CCSAdmin/passwd.c
(Generate patch)

Comparing CCSAdmin/passwd.c (file contents):
Revision 562 by douglas, 2005-08-27T21:46:39-07:00 vs.
Revision 564 by douglas, 2005-08-28T03:22:30-07:00

# Line 8 | Line 8
8  
9   int main(int argc, char *argv[])
10   {
11 +        if (argc < 1)
12 +                return 1;
13 +
14          int exception;
15          jmp_buf environment;
16  
# Line 48 | Line 51 | int main(int argc, char *argv[])
51                          }
52                  }
53  
54 +                regfree(&user_);
55 +
56                  if (strlen(user))
57                          goto on;
58                  else
# Line 66 | Line 71 | int main(int argc, char *argv[])
71                  longjmp(environment, 1);
72  
73          strlcpy(user, entry->pw_name, sizeof (user));
69
74   on:     authenticate(argv[0], environment);
75  
76          char password[_PASSWORD_LEN];

Diff Legend

Removed lines
+ Added lines
< Changed lines
> Changed lines