diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 20:09:31 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2007-04-21 20:09:31 +0000 |
commit | 604eed79299ea3929adef191c7702c1626500331 (patch) | |
tree | af929cc618782096fdc9ba654a600c5895462697 | |
parent | 8008038a816c97ca91747fd203abbf4886e9b98b (diff) | |
download | pfsense-604eed79299ea3929adef191c7702c1626500331.zip pfsense-604eed79299ea3929adef191c7702c1626500331.tar.gz |
Correct the copy() logic
-rw-r--r-- | etc/inc/config.inc | 2 |
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(); |