From: Sam Hartman Date: Sat, 10 Feb 1996 02:45:42 +0000 (+0000) Subject: Only display secure_message if encryption actually enabled X-Git-Tag: krb5-1.0-beta6~517 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6715ced522ca5792a2c0820a8e1023161b6c7d92;p=krb5.git Only display secure_message if encryption actually enabled git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7467 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index 507e841a4..ca4ac1953 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,7 @@ +Fri Feb 9 21:43:50 1996 Sam Hartman + + * krsh.c (main): Only print secure_message if encrypt_flag set. + Fri Feb 9 20:18:48 1996 * krlogind.c (recvauth): Fix v4 incompatability created by diff --git a/src/appl/bsd/krsh.c b/src/appl/bsd/krsh.c index e9162e8d7..8ac92ef30 100644 --- a/src/appl/bsd/krsh.c +++ b/src/appl/bsd/krsh.c @@ -374,7 +374,7 @@ main(argc, argv0) exit(1); } #ifdef HAVE_ISATTY - if(isatty(2)) { + if(encrypt_flag&&isatty(2)) { write(2,SECURE_MESSAGE, strlen(SECURE_MESSAGE)); } #endif @@ -683,3 +683,4 @@ int des_write(fd, buf, len) else return(len); } #endif /* KERBEROS */ +