From 00b7e03072be97390b39838cd7a9f55aaac7d63d Mon Sep 17 00:00:00 2001 From: Dinko Korunic Date: Wed, 31 Oct 2007 16:13:48 +0000 Subject: [PATCH] r2: - fix SID parse - fix SID generate in local rules --- debian/changelog | 6 ++++++ debian/postinst | 14 ++++++++------ 2 files changed, 14 insertions(+), 6 deletions(-) diff --git a/debian/changelog b/debian/changelog index c730abc..73771ad 100644 --- a/debian/changelog +++ b/debian/changelog @@ -1,3 +1,9 @@ +ossec-hids-cn (1.3-2) stable; urgency=low + + * ispravna detekcija/generiranje SID-ova + + -- Dinko Korunic Wed, 31 Oct 2007 14:32:32 +0100 + ossec-hids-cn (1.3-1) stable; urgency=low * inicijalna verzija paketa diff --git a/debian/postinst b/debian/postinst index eb8c4f2..fda11a0 100755 --- a/debian/postinst +++ b/debian/postinst @@ -49,7 +49,7 @@ script=' BEGIN { FS = "\"" } -/^[ \t]*/ { +/^[[:space:]]*/ { if (max < $2) max = $2 } @@ -57,10 +57,12 @@ END { print max }; ' -sid=100000 if [ -e "$local_rules" ]; then sid=$(awk "$script" "$local_rules") fi +if [ -z "$sid" ]; then + sid=100000 +fi # update local rules with our policy if [ -e "$local_rules" ]; then @@ -78,7 +80,7 @@ cp-update --comment '' \ Events ignored - + 1002 ^sophie|^smartd Events ignored @@ -86,14 +88,14 @@ cp-update --comment '' \ - + 3303 Events ignored - + 3356 - Ignore blacklisted mail... + Ignore blacklisted mail EOF -- 1.7.10.4