From: Sam Hartman Date: Sat, 10 Aug 1996 09:28:32 +0000 (+0000) Subject: Unlock source cache before executing command X-Git-Tag: krb5-1.0-beta7~161 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=02162b692a062d196f6b4d0a510661496994650e;p=krb5.git Unlock source cache before executing command git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@8921 dc483132-0cff-0310-8789-dd5450dbe970 --- diff --git a/src/clients/ksu/ChangeLog b/src/clients/ksu/ChangeLog index 6cc775171..a0ffde807 100644 --- a/src/clients/ksu/ChangeLog +++ b/src/clients/ksu/ChangeLog @@ -1,3 +1,7 @@ +Thu Aug 8 12:31:30 1996 Sam Hartman + + * main.c (main): Close source cache before executing command. + Sat May 25 16:11:55 1996 Sam Hartman * configure.in: Use aname db libs. diff --git a/src/clients/ksu/main.c b/src/clients/ksu/main.c index 70e895b0c..0b28903ce 100644 --- a/src/clients/ksu/main.c +++ b/src/clients/ksu/main.c @@ -809,6 +809,9 @@ krb5_seteuid(0); /*So we have some chance of sweeping up*/ exit(1); } + if ( cc_source) + krb5_cc_close(ksu_context, cc_source); + if (cmd){ if ((source_uid == 0) || (source_uid == target_uid )){ exec_cmd = cmd;