From 0df54308f952116702e7a16960a248b3dd55c605 Mon Sep 17 00:00:00 2001 From: Ricky Zhou Date: Sat, 21 Nov 2009 18:56:31 -0500 Subject: [PATCH] sync mkstemp fix from puppet --- scripts/upload.cgi/upload.cgi | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/scripts/upload.cgi/upload.cgi b/scripts/upload.cgi/upload.cgi index f32ed73..e851d3d 100644 --- a/scripts/upload.cgi/upload.cgi +++ b/scripts/upload.cgi/upload.cgi @@ -148,7 +148,7 @@ def main(): # grab a temporary filename and dump our file in there tempfile.tempdir = module_dir - tmpfile = tempfile.mkstemp(md5sum) + tmpfile = tempfile.mkstemp(md5sum)[1] tmpfd = open(tmpfile, 'w') # now read the whole file in