On error getting forwarded creds, actually print out the error
authorKen Raeburn <raeburn@mit.edu>
Mon, 25 May 2009 21:48:49 +0000 (21:48 +0000)
committerKen Raeburn <raeburn@mit.edu>
Mon, 25 May 2009 21:48:49 +0000 (21:48 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@22384 dc483132-0cff-0310-8789-dd5450dbe970

src/appl/bsd/kcmd.c

index 1990569446b2f00ba44ae377f4810f735d34527e..16c8e04388dce7ed2675b5e88e8d8bdf0a8f7f02 100644 (file)
@@ -551,7 +551,8 @@ kcmd(sock, ahost, rport, locuser, remuser, cmd, fd2p, service, realm,
                                    0, options & OPTS_FORWARDABLE_CREDS,
                                    &outbuf);
        if (status) {
-           fprintf(stderr, "kcmd: Error getting forwarded creds\n");
+           fprintf(stderr, "kcmd: Error getting forwarded creds: %s\n",
+                   error_message(status));
            goto bad2;
        }