summaryrefslogtreecommitdiffstats
path: root/etc/phpshellsessions
diff options
context:
space:
mode:
authorScott Ullrich <sullrich@pfsense.org>2008-06-19 18:03:19 +0000
committerScott Ullrich <sullrich@pfsense.org>2008-06-19 18:03:19 +0000
commit8c7b199cc856c17e2f84174291229daf66a679ee (patch)
tree4395db9261bd825136258eff28a8f4f8a15ac8f7 /etc/phpshellsessions
parent01e415be219f0bf90655d3cf821b61e658bef228 (diff)
downloadpfsense-8c7b199cc856c17e2f84174291229daf66a679ee.zip
pfsense-8c7b199cc856c17e2f84174291229daf66a679ee.tar.gz
Do not overwrite 0 sized bianries during cvssync
Reported-by: BillM
Diffstat (limited to 'etc/phpshellsessions')
-rw-r--r--etc/phpshellsessions/cvssync3
1 files changed, 3 insertions, 0 deletions
diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync
index 9520b04..828d075 100644
--- a/etc/phpshellsessions/cvssync
+++ b/etc/phpshellsessions/cvssync
@@ -108,6 +108,9 @@ exec("rm -rf ${CODIR}/pfSense/root/.shrc");
exec("rm -rf ${CODIR}/pfSense/root/.tcshrc");
exec("rm -f ${CODIR}/pfSense/etc/syslog.conf 2>/dev/null");
+echo "Finding zero byte files (binaries)..."
+find $CODIR/pfSense -perm -+x -type f -size 0 -exec rm {} \;
+
echo "Installing new files...\n";
exec("cd $CODIR/pfSense ; tar -cpf - . | (cd / ; tar -Uxpf -)");
OpenPOWER on IntegriCloud