[26516] in CVS-changelog-for-Kerberos-V5
svn rev #25847: trunk/src/lib/krb5/krb/
daemon@ATHENA.MIT.EDU (ghudson@mit.edu)
Thu May 3 17:43:44 2012
Date: Thu, 3 May 2012 17:43:42 -0400
From: ghudson@mit.edu
Message-Id: <201205032143.q43LhgU2024031@drugstore.mit.edu>
To: cvs-krb5@mit.edu
Reply-To: krbdev@mit.edu
MIME-Version: 1.0
Content-Type: text/plain; charset="us-ascii"
Content-Transfer-Encoding: 7bit
Errors-To: cvs-krb5-bounces@mit.edu
http://src.mit.edu/fisheye/changelog/krb5/?cs=25847
Commit By: ghudson
Log Message:
Make verify_init_creds work with existing ccache
As the file ccache implementation currently stands, we don't want to
turn off TC_OPENCLOSE on a file cache we're writing to, or it will be
opened read-only and stores to it will fail. Reported by Russ
Allbery.
ticket: 5126
Changed Files:
U trunk/src/lib/krb5/krb/vfy_increds.c
Modified: trunk/src/lib/krb5/krb/vfy_increds.c
===================================================================
--- trunk/src/lib/krb5/krb/vfy_increds.c 2012-05-03 20:28:02 UTC (rev 25846)
+++ trunk/src/lib/krb5/krb/vfy_increds.c 2012-05-03 21:43:42 UTC (rev 25847)
@@ -32,8 +32,6 @@
flags = 0; /* turns off OPENCLOSE mode */
if ((code = krb5_cc_set_flags(context, incc, flags)))
return(code);
- if ((code = krb5_cc_set_flags(context, outcc, flags)))
- return(code);
if ((code = krb5_cc_start_seq_get(context, incc, &cur)))
goto cleanup;
@@ -61,11 +59,6 @@
else
code = krb5_cc_set_flags(context, incc, flags);
- if (code)
- krb5_cc_set_flags(context, outcc, flags);
- else
- code = krb5_cc_set_flags(context, outcc, flags);
-
return(code);
}
_______________________________________________
cvs-krb5 mailing list
cvs-krb5@mit.edu
https://mailman.mit.edu/mailman/listinfo/cvs-krb5