summaryrefslogtreecommitdiffstats
path: root/etc/inc/config.inc
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2007-04-21 20:09:31 +0000
committerScott Ullrich <sullrich@pfsense.org>2007-04-21 20:09:31 +0000
commit604eed79299ea3929adef191c7702c1626500331 (patch)
treeaf929cc618782096fdc9ba654a600c5895462697 /etc/inc/config.inc
parent8008038a816c97ca91747fd203abbf4886e9b98b (diff)
downloadpfsense-604eed79299ea3929adef191c7702c1626500331.zip
pfsense-604eed79299ea3929adef191c7702c1626500331.tar.gz
Correct the copy() logic
Diffstat (limited to 'etc/inc/config.inc')
-rw-r--r--etc/inc/config.inc2
1 files changed, 1 insertions, 1 deletions
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();
OpenPOWER on IntegriCloud