Only display secure_message if encryption actually enabled
authorSam Hartman <hartmans@mit.edu>
Sat, 10 Feb 1996 02:45:42 +0000 (02:45 +0000)
committerSam Hartman <hartmans@mit.edu>
Sat, 10 Feb 1996 02:45:42 +0000 (02:45 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@7467 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/ChangeLog
src/appl/bsd/krsh.c

index 507e841a4a02d36d54b67734a397a7a01aca215d..ca4ac1953048054df896577f4dda407487532b69 100644 (file)
@@ -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
index e9162e8d7152e6de4cf4ce1b75a07307c96f1d3e..8ac92ef30aab60053cd939e2a05e0b486b5cbbb3 100644 (file)
@@ -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 */
+