version 1.97, 2001/02/21 21:14:04 |
version 1.98, 2001/02/22 21:59:44 |
|
|
u_short fwd_port, fwd_host_port; |
u_short fwd_port, fwd_host_port; |
char *optarg, *cp, buf[256]; |
char *optarg, *cp, buf[256]; |
struct stat st; |
struct stat st; |
struct passwd *pw, pwcopy; |
struct passwd *pw; |
int dummy; |
int dummy; |
uid_t original_effective_uid; |
uid_t original_effective_uid; |
|
|
|
|
exit(1); |
exit(1); |
} |
} |
/* Take a copy of the returned structure. */ |
/* Take a copy of the returned structure. */ |
memset(&pwcopy, 0, sizeof(pwcopy)); |
pw = pwcopy(pw); |
pwcopy.pw_name = xstrdup(pw->pw_name); |
|
pwcopy.pw_passwd = xstrdup(pw->pw_passwd); |
|
pwcopy.pw_uid = pw->pw_uid; |
|
pwcopy.pw_gid = pw->pw_gid; |
|
pwcopy.pw_class = xstrdup(pw->pw_class); |
|
pwcopy.pw_dir = xstrdup(pw->pw_dir); |
|
pwcopy.pw_shell = xstrdup(pw->pw_shell); |
|
pw = &pwcopy; |
|
|
|
/* Initialize "log" output. Since we are the client all output |
/* Initialize "log" output. Since we are the client all output |
actually goes to the terminal. */ |
actually goes to the terminal. */ |