home *** CD-ROM | disk | FTP | other *** search
/ NetNews Usenet Archive 1992 #31 / NN_1992_31.iso / spool / comp / protocol / kerberos / 976 < prev    next >
Encoding:
Text File  |  1992-12-23  |  1.5 KB  |  45 lines

  1. Newsgroups: comp.protocols.kerberos
  2. Path: sparky!uunet!stanford.edu!aktis.com!bjaspan
  3. From: bjaspan@aktis.com ("Barry Jaspan")
  4. Subject: Yet Another klist Patch
  5. Message-ID: <9212232100.AA01176@suan-la-chow-show.aktis.com>
  6. Sender: news@shelby.stanford.edu (USENET News System)
  7. Organization: Internet-USENET Gateway at Stanford University
  8. Date: Wed, 23 Dec 1992 21:00:01 GMT
  9. Lines: 34
  10.  
  11.  
  12. I made a silly mistake in my previous patch to implement the klist -s
  13. function.  Although the exit status was set correctly, all credentials
  14. in the cache *except* the tgt were printed anyway.  This patch fixes
  15. this bug.
  16.  
  17. Barry Jaspan, bjaspan@aktis.com
  18. Aktis, Inc.
  19.  
  20. ===================================================================
  21. RCS file: RCS/klist.c,v
  22. retrieving revision 5.19
  23. diff -c -r5.19 klist.c
  24. *** 5.19    1992/12/23 20:54:34
  25. --- klist.c    1992/12/23 20:53:24
  26. ***************
  27. *** 257,264 ****
  28.       }
  29.       
  30.       while (!(code = krb5_cc_next_cred(cache, &cur, &creds))) {
  31. !      if (status_only && exit_status) {
  32. !           if (creds.server->length == 2 &&
  33.             strcmp(creds.server->realm.data, princ->realm.data) == 0 &&
  34.             strcmp((char *)creds.server->data[0].data, "krbtgt") == 0 &&
  35.             strcmp((char *)creds.server->data[1].data,
  36. --- 257,264 ----
  37.       }
  38.       
  39.       while (!(code = krb5_cc_next_cred(cache, &cur, &creds))) {
  40. !      if (status_only) {
  41. !           if (exit_status && creds.server->length == 2 &&
  42.             strcmp(creds.server->realm.data, princ->realm.data) == 0 &&
  43.             strcmp((char *)creds.server->data[0].data, "krbtgt") == 0 &&
  44.             strcmp((char *)creds.server->data[1].data,
  45.