...
| Code Block | ||
|---|---|---|
| ||
int privileges;
if (valid_login())
printf("Login Successful\n"); /* debugging line added here */
if (is_normal()) /* the followingthis if-else clause is always evaluated with the assumption thateven if the user is not logged in, even if he is not! */
privileges = NORMAL;
else
privileges = ADMINISTRATOR;
|
...