Date: Wed, 10 Mar 2010 22:10:05 GMT From: "Andrei V. Lavreniyuk" <andy.lavr@reactor-xg.kiev.ua> To: freebsd-ports-bugs@FreeBSD.org Subject: Re: ports/144639: [PATCH] security/clamav-unofficial-sigs Message-ID: <201003102210.o2AMA5Ir099858@freefall.freebsd.org>
next in thread | raw e-mail | index | archive | help
The following reply was made to PR ports/144639; it has been noted by GNATS. From: "Andrei V. Lavreniyuk" <andy.lavr@reactor-xg.kiev.ua> To: bug-followup@FreeBSD.org Cc: Subject: Re: ports/144639: [PATCH] security/clamav-unofficial-sigs Date: Thu, 11 Mar 2010 00:01:56 +0200 This is a multi-part message in MIME format. --------------000305010407010705000301 Content-Type: text/plain; charset=KOI8-R; format=flowed Content-Transfer-Encoding: 7bit Hi! Sorry. New patch. -- Best regards, Andrei V. Lavreniyuk. --------------000305010407010705000301 Content-Type: text/plain; name="patch-clamav-unofficial-sigs.diff" Content-Transfer-Encoding: 7bit Content-Disposition: attachment; filename="patch-clamav-unofficial-sigs.diff" --- clamav-unofficial-sigs.sh.bak 2010-03-10 23:13:29.000000000 +0200 +++ clamav-unofficial-sigs.sh 2010-03-10 23:56:15.000000000 +0200 @@ -124,7 +124,7 @@ echo "$file_sig" | tr -d "\r" >> "$config_dir/monitor-ign.txt" if clamscan --quiet -d "$config_dir/local.ign" "$config_dir/scan-test.txt" then - if rsync -cqt $config_dir/local.ign $clam_dbs + if rsync -pcqt $config_dir/local.ign $clam_dbs then perms chown $clam_user:$clam_group local.ign chmod 0644 local.ign "$config_dir/monitor-ign.txt" @@ -379,7 +379,7 @@ then if ! cmp -s "$path_file" "$clam_dbs/$db_file" then - if rsync -cqt "$path_file" "$clam_dbs" + if rsync -pcqt "$path_file" "$clam_dbs" then perms chown $clam_user:$clam_group "$clam_dbs/$db_file" chmod 0644 "$clam_dbs/$db_file" @@ -577,7 +577,7 @@ grep -h -v -f "$config_dir/whitelist.hex" "$db_file" > "$db_file-tmp" mv -f "$db_file-tmp" "$db_file" if clamscan --quiet -d "$db_file" "$config_dir/scan-test.txt" 2>/dev/null ; then - if rsync -cqt $db_file $clam_dbs ; then + if rsync -pcqt $db_file $clam_dbs ; then perms chown $clam_user:$clam_group $clam_dbs/$db_file do_clamd_reload=1 fi @@ -998,7 +998,7 @@ log "WARNING - Clamscan reports Sanesecurity $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $ss_dir/$db_file $clam_dbs + if rsync -pcqt $ss_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated Sanesecurity production database file: $db_file" @@ -1026,7 +1026,7 @@ log "WARNING - Clamscan reports Sanesecurity $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $test_dir/$db_file $clam_dbs + if rsync -pcqt $test_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated Sanesecurity production database file: $db_file" @@ -1124,7 +1124,7 @@ log "WARNING - Clamscan reports Sanesecurity $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $si_dir/$db_file $clam_dbs + if rsync -pcqt $si_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated SecuriteInfo production database file: $db_file" @@ -1153,7 +1153,7 @@ log "WARNING - Clamscan reports Sanesecurity $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $test_dir/$db_file $clam_dbs + if rsync -pcqt $test_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated SecuriteInfo production database file: $db_file" @@ -1245,7 +1245,7 @@ log "WARNING - Clamscan reports Sanesecurity $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $mbl_dir/$db_file $clam_dbs + if rsync -pcqt $mbl_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated MalwarePatrol production database file: $db_file" @@ -1273,7 +1273,7 @@ log "WARNING - Clamscan reports Sanesecurity $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $test_dir/$db_file $clam_dbs + if rsync -pcqt $test_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated MalwarePatrol production database file: $db_file" @@ -1358,7 +1358,7 @@ log "WARNING - Clamscan reports $db_file database integrity tested BAD - SKIPPING" ; false fi && \ (test "$keep_db_backup" = "yes" && cp -f $clam_dbs/$db_file $clam_dbs/$db_file-bak 2>/dev/null ; true) && \ - if rsync -cqt $add_dir/$db_file $clam_dbs + if rsync -pcqt $add_dir/$db_file $clam_dbs then perms chown $clam_user:$clam_group $clam_dbs/$db_file comment "Successfully updated User-Added production database file: $db_file" @@ -1420,7 +1420,7 @@ if [ "$ign_updated" = "1" ] ; then if clamscan --quiet -d "$config_dir/local.ign" "$config_dir/scan-test.txt" then - if rsync -cqt $config_dir/local.ign $clam_dbs + if rsync -pcqt $config_dir/local.ign $clam_dbs then perms chown $clam_user:$clam_group "$clam_dbs/local.ign" chmod 0644 "$clam_dbs/local.ign" "$config_dir/monitor-ign.txt" --------------000305010407010705000301--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?201003102210.o2AMA5Ir099858>