diff options
author | Barry Jaspan <bjaspan@mit.edu> | 1996-11-14 19:31:03 +0000 |
---|---|---|
committer | Barry Jaspan <bjaspan@mit.edu> | 1996-11-14 19:31:03 +0000 |
commit | 34836ebe216c9e599f0161e8c82564902ecf245f (patch) | |
tree | 6b7fd275cbd487da5ce613fb13164ebd61cdca6d | |
parent | 976082f35e350dcb22e397c0ec122cbf900613fb (diff) | |
download | krb5-34836ebe216c9e599f0161e8c82564902ecf245f.zip krb5-34836ebe216c9e599f0161e8c82564902ecf245f.tar.gz krb5-34836ebe216c9e599f0161e8c82564902ecf245f.tar.bz2 |
* krcp.c: don't print our own error message if kcmd returns -1 (it
always printed something in that case, and error_message(-1)
prints a mess [krb5-appl/70]
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@9413 dc483132-0cff-0310-8789-dd5450dbe970
-rw-r--r-- | src/appl/bsd/ChangeLog | 6 | ||||
-rw-r--r-- | src/appl/bsd/krcp.c | 18 |
2 files changed, 16 insertions, 8 deletions
diff --git a/src/appl/bsd/ChangeLog b/src/appl/bsd/ChangeLog index c8378bf..f9aa5ad 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 14 14:30:28 1996 Barry Jaspan <bjaspan@mit.edu> + + * krcp.c: don't print our own error message if kcmd returns -1 (it + always printed something in that case, and error_message(-1) + prints a mess [krb5-appl/70] + Mon Nov 11 23:38:05 1996 Mark Eichin <eichin@cygnus.com> * krshd "plumbing" fixes diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index a353e55..6f76bd2 100644 --- a/src/appl/bsd/krcp.c +++ b/src/appl/bsd/krcp.c @@ -429,10 +429,11 @@ krb5_creds *cred; authopts, 0); /* Not any port # */ if (status) { - fprintf(stderr, - "%s: kcmd to host %s failed - %s\n", - orig_argv[0], host, - error_message(status)); + if (status != -1) + fprintf(stderr, + "%s: kcmd to host %s failed - %s\n", + orig_argv[0], host, + error_message(status)); try_normal(orig_argv); } else { @@ -525,10 +526,11 @@ krb5_creds *cred; authopts, 0); /* Not any port # */ if (status) { - fprintf(stderr, - "%s: kcmd to host %s failed - %s\n", - orig_argv[0], host, - error_message(status)); + if (status != -1) + fprintf(stderr, + "%s: kcmd to host %s failed - %s\n", + orig_argv[0], host, + error_message(status)); try_normal(orig_argv); } else { |