Print out display and not display_nr
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@969 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -383,14 +383,14 @@ doit (char *host, int passivep, int debugp, int tcpp)
|
|||||||
fn = active;
|
fn = active;
|
||||||
}
|
}
|
||||||
if(debugp)
|
if(debugp)
|
||||||
printf ("%u\t%d\t%s\n", (unsigned)getpid(), display_num, xauthfile);
|
printf ("%u\t%s\t%s\n", (unsigned)getpid(), display, xauthfile);
|
||||||
else {
|
else {
|
||||||
pid = fork();
|
pid = fork();
|
||||||
if (pid < 0) {
|
if (pid < 0) {
|
||||||
fprintf (stderr, "%s: fork: %s\n", prog, strerror(errno));
|
fprintf (stderr, "%s: fork: %s\n", prog, strerror(errno));
|
||||||
return 1;
|
return 1;
|
||||||
} else if (pid > 0) {
|
} else if (pid > 0) {
|
||||||
printf ("%u\t%d\t%s\n", (unsigned)pid, display_num, xauthfile);
|
printf ("%u\t%s\t%s\n", (unsigned)pid, display, xauthfile);
|
||||||
exit (0);
|
exit (0);
|
||||||
} else {
|
} else {
|
||||||
fclose(stdout);
|
fclose(stdout);
|
||||||
|
Reference in New Issue
Block a user