8 |
|
|
9 |
|
int main(int argc, char *argv[]) |
10 |
|
{ |
11 |
+ |
if (argc < 1) |
12 |
+ |
return 1; |
13 |
+ |
|
14 |
+ |
umask(S_IWGRP | S_IWOTH); |
15 |
+ |
|
16 |
|
int exception; |
17 |
|
jmp_buf environment; |
18 |
|
|
30 |
|
return 1; |
31 |
|
} |
32 |
|
|
33 |
< |
#ifdef _Zweihander_ |
33 |
> |
#ifdef _Master_ |
34 |
|
char user[MAXLOGNAME] = ""; |
35 |
|
|
36 |
|
if (!getuid()) |
53 |
|
} |
54 |
|
} |
55 |
|
|
56 |
+ |
regfree(&user_); |
57 |
+ |
|
58 |
|
if (strlen(user)) |
59 |
|
goto on; |
60 |
|
else |
73 |
|
longjmp(environment, 1); |
74 |
|
|
75 |
|
strlcpy(user, entry->pw_name, sizeof (user)); |
69 |
– |
|
76 |
|
on: authenticate(argv[0], environment); |
77 |
|
|
78 |
|
char password[_PASSWORD_LEN]; |
117 |
|
if (WEXITSTATUS(status)) |
118 |
|
return 1; |
119 |
|
#else |
120 |
< |
longjmp(environment, (int)"Log in to zweihander.ccs.ucsb.edu to change password"); |
120 |
> |
longjmp(environment, (int)"Log in to " MASTER " to change password"); |
121 |
|
#endif |
122 |
|
|
123 |
|
return 0; |