summaryrefslogtreecommitdiffstats
path: root/etc/inc/upgrade_config.inc
diff options
context:
space:
mode:
authorRenato Botelho <garga@FreeBSD.org>2014-02-03 14:55:01 -0200
committerRenato Botelho <garga@FreeBSD.org>2014-02-04 12:43:18 -0200
commit46b12609e51b9b3113abc9c22a1b0ad5a2b37d11 (patch)
tree0cadd8627871d2e8f159d093852e665a02e39777 /etc/inc/upgrade_config.inc
parent44f2ef9b486fc3e4e2a183ae157a86a9e8ac9018 (diff)
downloadpfsense-46b12609e51b9b3113abc9c22a1b0ad5a2b37d11.zip
pfsense-46b12609e51b9b3113abc9c22a1b0ad5a2b37d11.tar.gz
Add escapeshellarg() calls on exec parameters. While I'm here, replace some exec() calls by php functions like symlink, copy, unlink, mkdir
Conflicts: etc/inc/filter_log.inc etc/inc/interfaces.inc etc/inc/pfsense-utils.inc etc/inc/pkg-utils.inc
Diffstat (limited to 'etc/inc/upgrade_config.inc')
-rw-r--r--etc/inc/upgrade_config.inc6
1 files changed, 3 insertions, 3 deletions
diff --git a/etc/inc/upgrade_config.inc b/etc/inc/upgrade_config.inc
index 901902c..cf25e1d 100644
--- a/etc/inc/upgrade_config.inc
+++ b/etc/inc/upgrade_config.inc
@@ -1991,7 +1991,7 @@ function upgrade_054_to_055() {
/* restore the databases, if we have one */
if (restore_rrd()) {
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */
- exec("/bin/mv {$g['cf_conf_path']}/rrd.tgz {$g['cf_conf_path']}/backup");
+ rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup");
}
}
@@ -2657,7 +2657,7 @@ function upgrade_080_to_081() {
/* restore the databases, if we have one */
if (restore_rrd()) {
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */
- exec("/bin/mv {$g['cf_conf_path']}/rrd.tgz {$g['cf_conf_path']}/backup");
+ rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup");
}
}
@@ -3107,7 +3107,7 @@ function upgrade_095_to_096() {
/* restore the databases, if we have one */
if (restore_rrd()) {
/* Make sure to move the rrd backup out of the way. We will make a new one after converting. */
- exec("/bin/mv {$g['cf_conf_path']}/rrd.tgz {$g['cf_conf_path']}/backup");
+ rename("{$g['cf_conf_path']}/rrd.tgz", "{$g['cf_conf_path']}/backup");
}
}
OpenPOWER on IntegriCloud