Minor fixup
git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@261 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
@@ -498,6 +498,9 @@ encrypt_not(void)
|
|||||||
{
|
{
|
||||||
if (encrypt_verbose)
|
if (encrypt_verbose)
|
||||||
printf("[ Connection is NOT encrypted ]\r\n");
|
printf("[ Connection is NOT encrypted ]\r\n");
|
||||||
|
else
|
||||||
|
printf("\r\n*** Connection not encrypted! "
|
||||||
|
"Communication may be eavesdropped. ***\r\n");
|
||||||
}
|
}
|
||||||
|
|
||||||
/*
|
/*
|
||||||
|
@@ -255,7 +255,6 @@ int main(int argc, char **argv)
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
encrypt_verbose_quiet(1);
|
|
||||||
if (autologin == -1) { /* esc@magic.fi; force */
|
if (autologin == -1) { /* esc@magic.fi; force */
|
||||||
#if defined(AUTHENTICATION)
|
#if defined(AUTHENTICATION)
|
||||||
autologin = 1;
|
autologin = 1;
|
||||||
|
@@ -361,16 +361,16 @@ char *line = Xline;
|
|||||||
char *myline = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
char *myline = "\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0";
|
||||||
#endif /* CRAY */
|
#endif /* CRAY */
|
||||||
|
|
||||||
static char* k_ptsname(int p)
|
#ifndef HAVE_PTSNAME
|
||||||
|
static char *ptsname(int fd)
|
||||||
{
|
{
|
||||||
#ifdef HAVE_PTSNAME
|
|
||||||
return ptsname(p);
|
|
||||||
#endif
|
|
||||||
#ifdef HAVE_TTYNAME
|
#ifdef HAVE_TTYNAME
|
||||||
return ttyname(p);
|
return ttyname(fd);
|
||||||
#endif
|
#else
|
||||||
return NULL;
|
return NULL;
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
#endif
|
||||||
|
|
||||||
int getpty(int *ptynum)
|
int getpty(int *ptynum)
|
||||||
{
|
{
|
||||||
@@ -400,7 +400,7 @@ int getpty(int *ptynum)
|
|||||||
#ifdef HAVE_UNLOCKPT
|
#ifdef HAVE_UNLOCKPT
|
||||||
unlockpt(p);
|
unlockpt(p);
|
||||||
#endif
|
#endif
|
||||||
strcpy(line, k_ptsname(p));
|
strcpy(line, ptsname(p));
|
||||||
return p;
|
return p;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user