🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Thread View: comp.protocols.kerberos
1 messages
1 total messages Started by "Barry Jaspan" Wed, 23 Dec 1992 21:00
Yet Another klist Patch
#819
Author: "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,
Thread Navigation

This is a paginated view of messages in the thread with full content displayed inline.

Messages are displayed in chronological order, with the original post highlighted in green.

Use pagination controls to navigate through all messages in large threads.

Back to All Threads