From 031578fd81b0c85020ee46429b61b3aa52304255 Mon Sep 17 00:00:00 2001 From: Michiel Broek Date: Fri, 8 Feb 2002 14:25:34 +0000 Subject: [PATCH] Fixed small mbfile import problem --- Makefile | 10 ++++++++-- lib/unpacker.c | 2 +- mbfido/mbfutil.c | 2 +- 3 files changed, 10 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 10ef4800..06e60a95 100644 --- a/Makefile +++ b/Makefile @@ -136,8 +136,6 @@ install: @if [ ! -d ${PREFIX}/var/bso ] ; then \ mkdir ${PREFIX}/var/nodelist ; \ mkdir ${PREFIX}/var/bso ; \ - mkdir ${PREFIX}/var/bso/unknown ; \ - mkdir ${PREFIX}/var/bso/inbound ; \ mkdir ${PREFIX}/var/bso/outbound ; \ mkdir ${PREFIX}/var/msgs; \ mkdir ${PREFIX}/var/badtic ; \ @@ -146,6 +144,14 @@ install: ${CHOWN} -R ${OWNER}.${GROUP} ${PREFIX}/var ; \ chmod -R 0750 ${PREFIX}/var ; \ fi + @if [ ! -d ${PREFIX}/var/unknown ] ; then \ + mkdir ${PREFIX}/var/unknown ; \ + mkdir ${PREFIX}/var/inbound ; \ + ${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/var/unknown ; \ + ${CHOWN} ${OWNER}.${GROUP} ${PREFIX}/var/inbound ; \ + chmod 0750 ${PREFIX}/var/unknown ; \ + chmod 0750 ${PREFIX}/var/inbound ; \ + fi @chmod 0770 ${PREFIX}/var @chmod 0770 ${PREFIX}/var/mail for d in ${SUBDIRS}; do (cd $$d && ${MAKE} $@) || exit; done diff --git a/lib/unpacker.c b/lib/unpacker.c index 59f3e926..0c779716 100644 --- a/lib/unpacker.c +++ b/lib/unpacker.c @@ -62,7 +62,7 @@ char *unpacker(char *fn) if (memcmp(buf,"ZOO",3) == 0) return (char *)"ZOO"; if (memcmp(buf,"`\352",2) == 0) return (char *)"ARJ"; if (memcmp(buf,"Rar",3) == 0) return (char *)"RAR"; - if (memcmp(buf, ";A ",3) == 0) return (char *)"ASC"; +// if (memcmp(buf, ";A ",3) == 0) return (char *)"ASC"; Syslog('p', "Unknown compress scheme in file %s", fn); return NULL; diff --git a/mbfido/mbfutil.c b/mbfido/mbfutil.c index 6e60b72b..a3d8635c 100644 --- a/mbfido/mbfutil.c +++ b/mbfido/mbfutil.c @@ -230,7 +230,7 @@ int UnpackFile(char *File) Syslog('f', "UnpackFile(%s)", File); if ((unarc = unpacker(File)) == NULL) { - Syslog('+', "Unknown archive format %s", File); + Syslog('f', "Unknown archive format %s", File); return FALSE; }