From 3a77a392d7b0400bfa64a8745ffdb90570cfb5b3 Mon Sep 17 00:00:00 2001 From: Scott Ullrich Date: Thu, 19 Jun 2008 18:03:13 +0000 Subject: [PATCH] Do not overwrite 0 sized bianries during cvssync Reported-by: BillM --- etc/phpshellsessions/cvssync | 3 +++ 1 file changed, 3 insertions(+) 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 -)");