Now builds with --enable-debug

git-svn: trunk@844
remotes/push_mirror/metadata
Nigel Horne 21 years ago
parent b97d369e11
commit 90e80a549e
  1. 6
      clamav-devel/ChangeLog
  2. 8
      clamav-devel/libclamav/untar.c

@ -1,3 +1,7 @@
Sun Sep 12 20:54:05 BST 2004 (njh)
----------------------------------
* libclamav/untar.c: Now builds with configure --enable-debug
Sun Sep 12 16:37:04 CEST 2004 (tk)
----------------------------------
* docs/MacOSX: include Mac OS X instructions (thanks to Dale Enterprise L.L.C)
@ -13,7 +17,7 @@ Sun Sep 12 15:25:12 BST 2004 (njh)
Wed Sep 8 21:47:09 BST 2004 (njh)
----------------------------------
* contrib/init/RedHat: Start clamav before sendmail and shut it down
afterwards
afterwards
Wed Sep 8 17:05:08 BST 2004 (njh)
----------------------------------

@ -20,6 +20,9 @@
*
* Change History:
* $Log: untar.c,v $
* Revision 1.7 2004/09/12 19:51:59 nigelhorne
* Now builds with --enable-debug
*
* Revision 1.6 2004/09/08 16:02:34 nigelhorne
* fclose on error
*
@ -39,7 +42,7 @@
* First draft
*
*/
static char const rcsid[] = "$Id: untar.c,v 1.6 2004/09/08 16:02:34 nigelhorne Exp $";
static char const rcsid[] = "$Id: untar.c,v 1.7 2004/09/12 19:51:59 nigelhorne Exp $";
#include <stdio.h>
#include <errno.h>
@ -52,6 +55,7 @@ static char const rcsid[] = "$Id: untar.c,v 1.6 2004/09/08 16:02:34 nigelhorne E
#include "clamav.h"
#include "others.h"
#include "untar.h"
#include "mbox.h"
#include "blob.h"
#define BLOCKSIZE 512
@ -70,6 +74,7 @@ static char const rcsid[] = "$Id: untar.c,v 1.6 2004/09/08 16:02:34 nigelhorne E
#endif
#endif
static int
octal(const char *str)
{
@ -122,6 +127,7 @@ cli_untar(const char *dir, int desc)
if(block[0] == '\0') /* We're done */
break;
/* Notice assumption that BLOCKSIZE > 262 */
strncpy(magic, block+257, 6);
magic[6] = '\0';
if(strcmp(magic, "ustar ") != 0) {

Loading…
Cancel
Save