[248] in Kerberos-V5-bugs
Cosmetic patches for V5 klist
daemon@ATHENA.MIT.EDU (Barry Jaspan)
Wed Nov 11 14:17:59 1992
Date: Wed, 11 Nov 92 14:17:24 -0500
From: "Barry Jaspan" <bjaspan@Athena.MIT.EDU>
To: krb5-bugs@Athena.MIT.EDU
(Aside: Everyone seems to be sending V5 patches to krb5-bugs@mit.edu and
kerberos@mit.edu. Is that correct, or should they only go to the
former?)
The following patch fixes two cosmetic bugs in klist.c.
(1) The usage message did not include the -f (show flags) option.
(2) A blank line was printed between each credential when no
additional information (renew until time, flags, non-default client)
was displayed.
Barry Jaspan
*** 5.14 1992/09/29 14:40:05
--- klist.c 1992/11/11 19:10:36
***************
*** 1,6 ****
/*
* $Source:
/ua/software/src/krb5.src.B2/src/clients/klist/RCS/klist.c,v $
! * $Author: tytso $
*
* Copyright 1990 by the Massachusetts Institute of Technology.
* All Rights Reserved.
--- 1,6 ----
/*
* $Source:
/ua/software/src/krb5.src.B2/src/clients/klist/RCS/klist.c,v $
! * $Author: bjaspan $
*
* Copyright 1990 by the Massachusetts Institute of Technology.
* All Rights Reserved.
***************
*** 27,33 ****
#if !defined(lint) && !defined(SABER)
static char rcsid_klist_c [] =
! "$Id: klist.c,v 5.14 1992/09/29 14:40:05 tytso Exp $";
#endif /* !lint & !SABER */
#include <stdio.h>
--- 27,33 ----
#if !defined(lint) && !defined(SABER)
static char rcsid_klist_c [] =
! "$Id: klist.c,v 5.15 1992/11/11 19:10:14 bjaspan Exp $";
#endif /* !lint & !SABER */
#include <stdio.h>
***************
*** 101,107 ****
errflg++;
if (errflg) {
! fprintf(stderr, "Usage: %s [ -c cache ]\n", progname);
exit(2);
}
if (cache == NULL) {
--- 101,107 ----
errflg++;
if (errflg) {
! fprintf(stderr, "Usage: %s [ -f ] [ -c cache ]\n", progname);
exit(2);
}
if (cache == NULL) {
***************
*** 248,253 ****
--- 248,254 ----
fputs(", ",stdout);
fputs("renew until ", stdout);
printtime(cred->times.renew_till);
+ first = 0;
}
if (show_flags) {
flags = flags_string(cred);
***************
*** 260,266 ****
first = 0;
}
}
! putchar('\n');
free(name);
free(sname);
}
--- 261,269 ----
first = 0;
}
}
! /* if any additional info was printed, first is zero */
! if (!first)
! putchar('\n');
free(name);
free(sname);
}