version 1.81, 2001/01/13 19:14:09 |
version 1.82, 2001/01/15 21:40:10 |
|
|
/* Do not allocate a tty if stdin is not a tty. */ |
/* Do not allocate a tty if stdin is not a tty. */ |
if (!isatty(fileno(stdin)) && !force_tty_flag) { |
if (!isatty(fileno(stdin)) && !force_tty_flag) { |
if (tty_flag) |
if (tty_flag) |
fprintf(stderr, "Pseudo-terminal will not be allocated because stdin is not a terminal.\n"); |
log("Pseudo-terminal will not be allocated because stdin is not a terminal.\n"); |
tty_flag = 0; |
tty_flag = 0; |
} |
} |
|
|
/* Get user data. */ |
/* Get user data. */ |
pw = getpwuid(original_real_uid); |
pw = getpwuid(original_real_uid); |
if (!pw) { |
if (!pw) { |
fprintf(stderr, "You don't exist, go away!\n"); |
log("You don't exist, go away!\n"); |
exit(1); |
exit(1); |
} |
} |
/* Take a copy of the returned structure. */ |
/* Take a copy of the returned structure. */ |