[SCM] Samba Shared Repository - branch master updated
Andrew Bartlett
abartlet at samba.org
Wed Apr 10 22:07:02 MDT 2013
The branch, master has been updated
via afd291b Avoid leaking temp file if an exception is raised
from 8aae8b5 s3:smbd: do not access data behind req->buf+req->buflen in srvstr_pull_req_talloc()
http://gitweb.samba.org/?p=samba.git;a=shortlog;h=master
- Log -----------------------------------------------------------------
commit afd291b1dee44b2400bed119bccfc0b722d8cc9c
Author: Jean Raby <jraby at inverse.ca>
Date: Wed Apr 10 21:33:34 2013 -0400
Avoid leaking temp file if an exception is raised
Reviewed-by: Andrew Bartlett <abartlet at samba.org>
Autobuild-User(master): Andrew Bartlett <abartlet at samba.org>
Autobuild-Date(master): Thu Apr 11 06:06:03 CEST 2013 on sn-devel-104
-----------------------------------------------------------------------
Summary of changes:
source4/scripting/bin/samba_dnsupdate | 6 +++++-
1 files changed, 5 insertions(+), 1 deletions(-)
Changeset truncated at 500 lines:
diff --git a/source4/scripting/bin/samba_dnsupdate b/source4/scripting/bin/samba_dnsupdate
index 33c16ec..68b0f72 100755
--- a/source4/scripting/bin/samba_dnsupdate
+++ b/source4/scripting/bin/samba_dnsupdate
@@ -116,7 +116,11 @@ def get_credentials(lp):
creds.set_machine_account(lp)
creds.set_krb_forwardable(credentials.NO_KRB_FORWARDABLE)
(tmp_fd, ccachename) = tempfile.mkstemp()
- creds.get_named_ccache(lp, ccachename)
+ try:
+ creds.get_named_ccache(lp, ccachename)
+ except RuntimeError as e:
+ os.unlink(ccachename)
+ raise e
class dnsobj(object):
--
Samba Shared Repository
More information about the samba-cvs
mailing list