From 34836ebe216c9e599f0161e8c82564902ecf245f Mon Sep 17 00:00:00 2001 From: Barry Jaspan Date: Thu, 14 Nov 1996 19:31:03 +0000 Subject: [PATCH] * 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 --- src/appl/bsd/ChangeLog | 6 ++++++ 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 c8378bfe4..f9aa5ad88 100644 --- a/src/appl/bsd/ChangeLog +++ b/src/appl/bsd/ChangeLog @@ -1,3 +1,9 @@ +Thu Nov 14 14:30:28 1996 Barry Jaspan + + * 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 * krshd "plumbing" fixes diff --git a/src/appl/bsd/krcp.c b/src/appl/bsd/krcp.c index a353e55a0..6f76bd272 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 { -- 2.26.2