diff options
author | Scott Ullrich <sullrich@pfsense.org> | 2008-06-19 18:03:19 +0000 |
---|---|---|
committer | Scott Ullrich <sullrich@pfsense.org> | 2008-06-19 18:03:19 +0000 |
commit | 8c7b199cc856c17e2f84174291229daf66a679ee (patch) | |
tree | 4395db9261bd825136258eff28a8f4f8a15ac8f7 /etc/phpshellsessions | |
parent | 01e415be219f0bf90655d3cf821b61e658bef228 (diff) | |
download | pfsense-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/cvssync | 3 |
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 -)"); |