server/serverctl.py
branch3.5
changeset 3316 c4c07aab1c39
parent 3303 f961392e7517
parent 3148 81d373245ce9
child 3369 7b88d12b4ee2
child 3539 f3b14d052798
--- a/server/serverctl.py	Fri Sep 18 11:06:42 2009 +0200
+++ b/server/serverctl.py	Fri Sep 18 12:20:39 2009 +0200
@@ -677,7 +677,8 @@
         import tempfile
         srcappid = pop_arg(args, 1, msg='No source instance specified !')
         destappid = pop_arg(args, msg='No destination instance specified !')
-        output = tempfile.mkstemp()[1]
+        fd, output = tempfile.mkstemp()
+        os.close(fd)
         if ':' in srcappid:
             host, srcappid = srcappid.split(':')
             _remote_dump(host, srcappid, output, self.config.sudo)