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@9211
dc483132-0cff-0310-8789-
dd5450dbe970
+Fri Oct 18 17:26:51 1996 Barry Jaspan <bjaspan@mit.edu>
+
+ * krsh.c, krlogin.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 Sep 30 17:15:14 1996 Sam Hartman <hartmans@mit.edu>
* login.c: Allow login -f to let you log in as root.
0); /* Not any port # */
if (status) {
/* should check for KDC_PR_UNKNOWN, NO_TKT_FILE here -- XXX */
- fprintf(stderr,
- "%s: kcmd to host %s failed - %s\n",orig_argv[0], host,
- error_message(status));
- try_normal(orig_argv);
+ if (status != -1)
+ fprintf(stderr,
+ "%s: kcmd to host %s failed - %s\n",orig_argv[0], host,
+ error_message(status));
+ try_normal(orig_argv);
}
rem = sock;
1); /* Always set anyport, there is no need not to. --proven */
if (status) {
/* check NO_TKT_FILE or equivalent... */
- fprintf(stderr,
- "%s: kcmd to host %s failed - %s\n",argv0[0], host,
- error_message(status));
- try_normal(argv0);
+ if (status != -1)
+ fprintf(stderr,
+ "%s: kcmd to host %s failed - %s\n",argv0[0], host,
+ error_message(status));
+ try_normal(argv0);
}
/* Setup for des_read and write */