Skip Menu |
 

Subject: kdb5_util/kdb5_ldap_util core dumps and prints incorrect progname on error paths

There are a number of places in krb5_util and krb5_ldap_util where
argv[0] is being used instead of 'progname'. This results in core dumps
in some situations and in an incorrect string being printed instead of
the program name (when printing an error message).

e.g.
when the password read is interupted by a SIGINT

4# kdb5_ldap_util -D "cn=Directory Manager" create -r ACME.COM -s
Password for "cn=Directory Manager":
zsh: segmentation fault (core dumped) kdb5_ldap_util -D "cn=Directory
Manager" create -r ACME.COM -s
Download krb5-1.6.3_kdb5_util_progname.patch
application/octet-stream 46.8KiB

Message body not shown because it is not plain text.

From: tlyu@mit.edu
Subject: SVN Commit

Apply patch from Mark Phalan to correctly use progname instead of
argv[0].


Commit By: tlyu



Revision: 20532
Changed Files:
_U trunk/
U trunk/src/kadmin/dbutil/dump.c
U trunk/src/kadmin/dbutil/kdb5_create.c
U trunk/src/kadmin/dbutil/kdb5_destroy.c
U trunk/src/kadmin/dbutil/kdb5_stash.c
U trunk/src/kadmin/dbutil/kdb5_util.c
U trunk/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c
U trunk/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
U trunk/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
U trunk/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c
U trunk/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.h
From: tlyu@mit.edu
Subject: SVN Commit

pull up r20532 from trunk

r20532@cathode-dark-space: tlyu | 2008-07-17 11:44:43 -0400
ticket: 6030
tags: pullup
target_version: 1.6.4

Apply patch from Mark Phalan to correctly use progname instead of
argv[0].




Commit By: tlyu



Revision: 20549
Changed Files:
_U branches/krb5-1-6/
U branches/krb5-1-6/src/kadmin/dbutil/dump.c
U branches/krb5-1-6/src/kadmin/dbutil/kdb5_create.c
U branches/krb5-1-6/src/kadmin/dbutil/kdb5_destroy.c
U branches/krb5-1-6/src/kadmin/dbutil/kdb5_stash.c
U branches/krb5-1-6/src/kadmin/dbutil/kdb5_util.c
U branches/krb5-1-6/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_policy.c
U branches/krb5-1-6/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_realm.c
U branches/krb5-1-6/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_services.c
U branches/krb5-1-6/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.c
U branches/krb5-1-6/src/plugins/kdb/ldap/ldap_util/kdb5_ldap_util.h