From owner-freebsd-ports-bugs@FreeBSD.ORG Wed Mar 10 22:10:05 2010 Return-Path: Delivered-To: freebsd-ports-bugs@hub.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4FE4A106564A for ; Wed, 10 Mar 2010 22:10:05 +0000 (UTC) (envelope-from gnats@FreeBSD.org) Received: from freefall.freebsd.org (freefall.freebsd.org [IPv6:2001:4f8:fff6::28]) by mx1.freebsd.org (Postfix) with ESMTP id 3E5688FC18 for ; Wed, 10 Mar 2010 22:10:05 +0000 (UTC) Received: from freefall.freebsd.org (localhost [127.0.0.1]) by freefall.freebsd.org (8.14.4/8.14.4) with ESMTP id o2AMA5GC099859 for ; Wed, 10 Mar 2010 22:10:05 GMT (envelope-from gnats@freefall.freebsd.org) Received: (from gnats@localhost) by freefall.freebsd.org (8.14.4/8.14.4/Submit) id o2AMA5Ir099858; Wed, 10 Mar 2010 22:10:05 GMT (envelope-from gnats) Date: Wed, 10 Mar 2010 22:10:05 GMT Message-Id: <201003102210.o2AMA5Ir099858@freefall.freebsd.org> To: freebsd-ports-bugs@FreeBSD.org From: "Andrei V. Lavreniyuk" Cc: Subject: Re: ports/144639: [PATCH] security/clamav-unofficial-sigs X-BeenThere: freebsd-ports-bugs@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list Reply-To: "Andrei V. Lavreniyuk" List-Id: Ports bug reports List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 10 Mar 2010 22:10:05 -0000 The following reply was made to PR ports/144639; it has been noted by GNATS. From: "Andrei V. Lavreniyuk" 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--