[krbdev.mit.edu #1818] 64-bit cleanliness in lib/krb4/tf_util.c
nalin@redhat.com via RT
rt-comment at krbdev.mit.edu
Fri Sep 5 18:02:31 EDT 2003
Hi, I've stumbled onto a 64-bit cleanliness problem in tf_util.c's
versions of tf_get_cred() and tf_save_cred(). The issue date in the
credential structure is written to and read from the file as a long.
If a 64-bit system can also run 32-bit binaries, the 32-bit library and
the 64-bit library (or rather, apps which link against them) won't be
able to share the same file. I'm attaching a patch which works on my
test system (though now that I think about it some more, the code could
as easily read and write the issue_date field in the credentials
structure directly instead of using a temporary).
Thanks,
Nalin
More information about the krb5-bugs
mailing list