From 5c47fa0c867d1c803e8cfb9f97b27dbd4b1b651c Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Sat, 13 Mar 2004 12:02:48 +0000 Subject: [PATCH] Debug logging decreased for magic files tests --- lib/magic.c | 14 +------------- lib/mbselib.h | 1 - mbfido/mbfcheck.c | 2 -- 3 files changed, 1 insertion(+), 16 deletions(-) diff --git a/lib/magic.c b/lib/magic.c index 440d0933..a9f9fa5e 100644 --- a/lib/magic.c +++ b/lib/magic.c @@ -73,10 +73,8 @@ int magic_check(char *Alias, char *FileName) FILE *fp; int rc = -1; - Syslog('f', "magic_check(%s, %s)", Alias, FileName); - if (!strlen(CFG.req_magic)) { - WriteError("No magic filename path configured"); + WriteError("magic_check(): no magic filename path configured"); return -1; } @@ -103,13 +101,3 @@ int magic_check(char *Alias, char *FileName) } - -/* - * Get record for a magic alias in area. - */ -long magic_get(char *Name, long AreaNum) -{ - return -1; -} - - diff --git a/lib/mbselib.h b/lib/mbselib.h index 912f29b5..7ee1d8a5 100644 --- a/lib/mbselib.h +++ b/lib/mbselib.h @@ -2453,7 +2453,6 @@ int rearc(char *, char *, int); /* Rearc command */ */ void magic_update(char *, char *); /* Update magic alias */ int magic_check(char *, char *); /* Check if magic alias exists */ -long magic_get(char *, long); /* Get fdb record for magic name */ diff --git a/mbfido/mbfcheck.c b/mbfido/mbfcheck.c index ad30279d..a3e1d974 100644 --- a/mbfido/mbfcheck.c +++ b/mbfido/mbfcheck.c @@ -365,7 +365,6 @@ void Check(void) } } if (strlen(fdb.Magic)) { - Syslog('f', "Checking magic %s file %s", fdb.Magic, fdb.Name); rc = magic_check(fdb.Magic, fdb.Name); if (rc == -1) { Syslog('+', "Area %d magic alias %s file %s is invalid", i, fdb.Magic, fdb.Name); @@ -468,7 +467,6 @@ void Check(void) if (file_exist(temp, X_OK) == 0) { Syslog('f', "%s is executable", temp); } else if (file_exist(temp, R_OK) == 0) { - Syslog('f', "%s is magic alias", temp); if ((pFile = fopen(temp, "r"))) { fgets(mname, PATH_MAX -1, pFile); fclose(pFile);