version 1.52, 2001/02/03 10:08:37 |
version 1.53, 2001/02/04 15:32:25 |
|
|
static char *xauthfile; |
static char *xauthfile; |
|
|
/* original command from peer. */ |
/* original command from peer. */ |
char *original_command = NULL; |
char *original_command = NULL; |
|
|
/* data */ |
/* data */ |
#define MAX_SESSIONS 10 |
#define MAX_SESSIONS 10 |
|
|
(LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { |
(LOGIN_SETALL & ~LOGIN_SETPATH)) < 0) { |
perror("unable to set user context"); |
perror("unable to set user context"); |
exit(1); |
exit(1); |
|
|
} |
} |
#else |
#else |
if (setlogin(pw->pw_name) < 0) |
if (setlogin(pw->pw_name) < 0) |
|
|
if (f) { |
if (f) { |
fprintf(f, "add %s %s %s\n", display, |
fprintf(f, "add %s %s %s\n", display, |
auth_proto, auth_data); |
auth_proto, auth_data); |
if (screen != NULL) |
if (screen != NULL) |
fprintf(f, "add %.*s/unix%s %s %s\n", |
fprintf(f, "add %.*s/unix%s %s %s\n", |
(int)(screen-display), display, |
(int)(screen-display), display, |
screen, auth_proto, auth_data); |
screen, auth_proto, auth_data); |