diff --git a/etc/phpshellsessions/cvssync b/etc/phpshellsessions/cvssync index 57303e6424..5c2a961fec 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 -)");