aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMichael Scherer <misc@mandriva.com>2006-05-04 14:03:36 +0000
committerMichael Scherer <misc@mandriva.com>2006-05-04 14:03:36 +0000
commitc3e072dbce9ec59d891dd58f8afdfd92a1bee8d3 (patch)
tree57631e2bf3da1267a8495c94f5edb9ac498aa55a
parenta5b572c4a4e73bc0b369c20c9cdf7b2f5804b8ea (diff)
downloadmsec-c3e072dbce9ec59d891dd58f8afdfd92a1bee8d3.tar
msec-c3e072dbce9ec59d891dd58f8afdfd92a1bee8d3.tar.gz
msec-c3e072dbce9ec59d891dd58f8afdfd92a1bee8d3.tar.bz2
msec-c3e072dbce9ec59d891dd58f8afdfd92a1bee8d3.tar.xz
msec-c3e072dbce9ec59d891dd58f8afdfd92a1bee8d3.zip
fix bug #21090, by using logger instead of deprecated initlog, thanks blino
-rwxr-xr-xcron-sh/promisc_check.sh2
-rwxr-xr-xcron-sh/security.sh2
-rw-r--r--src/msec_find/find.c2
3 files changed, 4 insertions, 2 deletions
diff --git a/cron-sh/promisc_check.sh b/cron-sh/promisc_check.sh
index d6867b9..5162a93 100755
--- a/cron-sh/promisc_check.sh
+++ b/cron-sh/promisc_check.sh
@@ -5,7 +5,7 @@
Syslog() {
if [[ ${SYSLOG_WARN} == yes ]]; then
- /sbin/initlog --string="${1}"
+ logger "${1}"
fi
}
diff --git a/cron-sh/security.sh b/cron-sh/security.sh
index bd7ec79..bcf2d3d 100755
--- a/cron-sh/security.sh
+++ b/cron-sh/security.sh
@@ -190,7 +190,7 @@ fi
Syslog() {
if [[ ${SYSLOG_WARN} == yes ]]; then
while read line; do
- /sbin/initlog --string="${line}"
+ logger "${line}"
done < ${1}
fi
}
diff --git a/src/msec_find/find.c b/src/msec_find/find.c
index a9e96aa..a474ff4 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -198,7 +198,9 @@ int main(int argc, char **argv)
init();
for ( i = 1; i < argc; i++ ) {
+ printf("%s\n",argv[i]);
if ( strcmp(argv[i], "/") != 0) {
+ printf("plop\n");
/*
* We need to add a final '/' to the base directory name else the
* FTW_MOUNT option of nftw won't work. i.e. : /mnt/cdrom is on the /