# HG changeset patch # User Julien Jehannet # Date 1296224627 -3600 # Node ID 9e607157d4cf1aa40b341fe893c2f1f335cd76ca # Parent e080e7465ac49aebbb72c938877a36a924446f89 [cw-ctl] use default `mkdtemp()` behaviour to store backup file internally When using `mkdtemp(dir=instbkdir)`, a dedicated system user which hasn't the permissions to write in /var/lib/cubicweb/instances/$INSTANCE/backup will not be able to run the db-dump command. diff -r e080e7465ac4 -r 9e607157d4cf server/migractions.py --- a/server/migractions.py Fri Jan 28 11:21:45 2011 +0100 +++ b/server/migractions.py Fri Jan 28 15:23:47 2011 +0100 @@ -183,7 +183,7 @@ open(backupfile,'w').close() # kinda lock os.chmod(backupfile, 0600) # backup - tmpdir = tempfile.mkdtemp(dir=instbkdir) + tmpdir = tempfile.mkdtemp() try: for source in repo.sources: try: