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;
|
||||
}
|
||||
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 {
|
||||
pid = fork();
|
||||
if (pid < 0) {
|
||||
fprintf (stderr, "%s: fork: %s\n", prog, strerror(errno));
|
||||
return 1;
|
||||
} 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);
|
||||
} else {
|
||||
fclose(stdout);
|
||||
|
Reference in New Issue
Block a user