# HG changeset patch # User sylvain.thenault@logilab.fr # Date 1239001124 -7200 # Node ID 6a9f621e07cca498ae7f0a2de810cd74548a41e6 # Parent 7eda09aa7553d200ab7831328928e19c183db713 restrict read perms to user on backup files diff -r 7eda09aa7553 -r 6a9f621e07cc server/migractions.py --- a/server/migractions.py Sat Apr 04 15:48:08 2009 +0200 +++ b/server/migractions.py Mon Apr 06 08:58:44 2009 +0200 @@ -106,7 +106,9 @@ if answer == 1: # 1: continue, 2: retry break else: + from cubicweb.toolsutils import restrict_perms_to_user print 'database backup:', backupfile + restrict_perms_to_user(backupfile, self.info) break def restore_database(self, backupfile, drop=True):