diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 19:43:06 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 19:43:06 +0000 |
commit | e7e7584bf60ad338a34618b0e35a9a088c3af2b8 (patch) | |
tree | bfb8eb60a9d40ccfd3efeb4d1e00dabc17187ed8 /etc | |
parent | 51db4c344e4e2359ae72a16a0fcaee41bd15f95b (diff) | |
download | pfsense-e7e7584bf60ad338a34618b0e35a9a088c3af2b8.zip pfsense-e7e7584bf60ad338a34618b0e35a9a088c3af2b8.tar.gz |
Do correct locking when cleaning the backup cache
Diffstat (limited to 'etc')
-rw-r--r-- | etc/inc/config.inc | 2 |
1 files changed, 2 insertions, 0 deletions
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() { |