🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: comp.protocols.kerberos
Article #819

Yet Another klist Patch

#819
From: "Barry Jaspan"
Date: Wed, 23 Dec 1992 21:00
34 lines
1629 bytes
I made a silly mistake in my previous patch to implement the klist -s
function.  Although the exit status was set correctly, all credentials
in the cache *except* the tgt were printed anyway.  This patch fixes
this bug.

Barry Jaspan, bjaspan@aktis.com
Aktis, Inc.

===================================================================
RCS file: RCS/klist.c,v
retrieving revision 5.19
diff -c -r5.19 klist.c
*** 5.19	1992/12/23 20:54:34
--- klist.c	1992/12/23 20:53:24
***************
*** 257,264 ****
      }
      
      while (!(code = krb5_cc_next_cred(cache, &cur, &creds))) {
! 	 if (status_only && exit_status) {
! 	      if (creds.server->length == 2 &&
  		  strcmp(creds.server->realm.data, princ->realm.data) == 0 &&
  		  strcmp((char *)creds.server->data[0].data, "krbtgt") == 0 &&
  		  strcmp((char *)creds.server->data[1].data,
--- 257,264 ----
      }
      
      while (!(code = krb5_cc_next_cred(cache, &cur, &creds))) {
! 	 if (status_only) {
! 	      if (exit_status && creds.server->length == 2 &&
  		  strcmp(creds.server->realm.data, princ->realm.data) == 0 &&
  		  strcmp((char *)creds.server->data[0].data, "krbtgt") == 0 &&
  		  strcmp((char *)creds.server->data[1].data,
Technical Details
Message-ID: <9212232100.AA01176@suan-la-chow-show.aktis.com>
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!aktis.com!bjaspan

Show Full Headers
Complete Article Headers
Newsgroups: comp.protocols.kerberos
Path: arc1-ca.pugleaf.net!sparky!uunet!stanford.edu!aktis.com!bjaspan
From: bjaspan@aktis.com ("Barry Jaspan")
Subject: Yet Another klist Patch
Message-ID: <9212232100.AA01176@suan-la-chow-show.aktis.com>
Sender: news@shelby.stanford.edu (USENET News System)
Organization: Internet-USENET Gateway at Stanford University
Date: Wed, 23 Dec 1992 21:00:01 GMT
Lines: 34