Do not overwrite 0 sized bianries during cvssync

Reported-by: BillM
This commit is contained in:
Scott Ullrich 2008-06-19 18:03:13 +00:00
parent 60089505e9
commit 3a77a392d7

View File

@ -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 -)");