From 604eed79299ea3929adef191c7702c1626500331 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Sat, 21 Apr 2007 20:09:31 +0000 Subject: Correct the copy() logic --- etc/inc/config.inc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'etc') diff --git a/etc/inc/config.inc b/etc/inc/config.inc index e71b489..af067e0 100644 --- a/etc/inc/config.inc +++ b/etc/inc/config.inc @@ -300,7 +300,7 @@ function restore_backup($file) { config_lock(); if(file_exists($file)) { conf_mount_rw(); - copy("$file /cf/conf/config.xml"); + copy("$file","/cf/conf/config.xml"); unlink_if_exists("/tmp/config.cache"); log_error("pfSense is restoring the configuration $file"); conf_mount_ro(); -- cgit v1.1