aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rwxr-xr-xinit-sh/custom.sh2
-rw-r--r--msec.spec5
-rw-r--r--src/msec_find/find.c11
3 files changed, 10 insertions, 8 deletions
diff --git a/init-sh/custom.sh b/init-sh/custom.sh
index 38f18cc..f034c13 100755
--- a/init-sh/custom.sh
+++ b/init-sh/custom.sh
@@ -191,7 +191,7 @@ fi
###
if [[ ${WRITE_CRON} == "true" ]]; then
- AddRules "0 0-23 * * * root nice --adjustment=+19 /usr/share/msec/security.sh" /etc/crontab
+ AddRules "0 4 * * * root /usr/share/msec/security.sh" /etc/crontab
fi
LiloUpdate;
diff --git a/msec.spec b/msec.spec
index 057602e..dcc560c 100644
--- a/msec.spec
+++ b/msec.spec
@@ -1,5 +1,5 @@
%define version 0.12
-%define release 4mdk
+%define release 5mdk
Summary: Security Level & Program for the Linux Mandrake distribution
Name: msec
@@ -46,6 +46,9 @@ rm -rf $RPM_BUILD_ROOT
%config /etc/security/msec
%changelog
+* Tue Apr 18 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 0.12-5mdk
+- cron job at 4:00am, msec_find fix.
+
* Mon Apr 17 2000 Yoann Vandoorselaere <yoann@mandrakesoft.com> 0.12-4mdk
- perm.5 : -e s'/ntool/ntools/' -e s'/ctool/ctools/'
- updated documentation.
diff --git a/src/msec_find/find.c b/src/msec_find/find.c
index 6b20fb0..b1fb2d2 100644
--- a/src/msec_find/find.c
+++ b/src/msec_find/find.c
@@ -169,19 +169,18 @@ int main(int argc, char **argv)
char *directory;
int res = 0, i;
int ctrl = 0;
-
+
if ( argc < 2 ) {
fprintf(stderr, "Please give directory as argument.\n");
fprintf(stderr, "%s /usr/sbin /sbin\n\n", argv[0]);
exit(1);
}
-
+
/* open all log files */
init();
- for ( i = 0; i < argc; i++ ) {
-
- if (strcmp(argv[0], "/") != 0) {
+ for ( i = 1; i < argc; i++ ) {
+ if ( strcmp(argv[i], "/") != 0) {
/*
* 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 /
@@ -201,7 +200,7 @@ int main(int argc, char **argv)
strcat(directory, "/");
} else directory = argv[i];
- res = nftw(directory, traverse, (int) 500, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
+ res = nftw(directory, traverse, 200, FTW_PHYS | FTW_MOUNT | FTW_CHDIR);
if ( ctrl ) {
free(directory);
ctrl = 0;