summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorSam Hartman <hartmans@mit.edu>1996-02-10 02:45:42 +0000
committerSam Hartman <hartmans@mit.edu>1996-02-10 02:45:42 +0000
commit6715ced522ca5792a2c0820a8e1023161b6c7d92 (patch)
tree6d2b11ff4d105cf4d2f75a6a06ba3732e6d1ee67 /src
parentc57a6585b4328c5e68ee46dce20ae85e56bf4554 (diff)
downloadkrb5-6715ced522ca5792a2c0820a8e1023161b6c7d92.tar.gz
krb5-6715ced522ca5792a2c0820a8e1023161b6c7d92.tar.xz
krb5-6715ced522ca5792a2c0820a8e1023161b6c7d92.zip
Only display secure_message if encryption actually enabled
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7467 dc483132-0cff-0310-8789-dd5450dbe970
Diffstat (limited to 'src')
-rw-r--r--src/appl/bsd/ChangeLog4
-rw-r--r--src/appl/bsd/krsh.c3
2 files changed, 6 insertions, 1 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog
index 507e841a4a..ca4ac19530 100644
--- a/src/appl/bsd/ChangeLog
+++ b/src/appl/bsd/ChangeLog
@@ -1,3 +1,7 @@
+Fri Feb 9 21:43:50 1996 Sam Hartman <hartmans@hartman.mit.edu>
+
+ * krsh.c (main): Only print secure_message if encrypt_flag set.
+
Fri Feb 9 20:18:48 1996 <hartmans@mit.edu>
* krlogind.c (recvauth): Fix v4 incompatability created by
diff --git a/src/appl/bsd/krsh.c b/src/appl/bsd/krsh.c
index e9162e8d71..8ac92ef30a 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 */
+