From e7e7584bf60ad338a34618b0e35a9a088c3af2b8 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 21 Apr 2007 19:43:06 +0000 Subject: Do correct locking when cleaning the backup cache --- etc/inc/config.inc | 2 ++ 1 file changed, 2 insertions(+) (limited to 'etc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index a4ff0e6..7bb0cfa 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -1664,6 +1664,7 @@ function system_start_ftp_helpers() { function cleanup_backupcache($revisions = 30) { global $g; $i = false; + config_lock(); if(file_exists($g['cf_conf_path'] . '/backup/backup.cache')) { conf_mount_rw(); $backups = get_backups(); @@ -1720,6 +1721,7 @@ function cleanup_backupcache($revisions = 30) { print "done.\n"; } } + config_unlock(); } function get_backups() { -- cgit v1.1