Re: [Clamav-users] LibClamAV ERROR with tar archives

2005-03-17 Thread Dale Walsh
On Mar 17, 2005, at 05:48, Administrator wrote:
hi,
Version of Clamav 0.83/764 with HP-UX 11.11.
PROBLEM
When i try to scan tar archives this is the message:
hpux11# /opt/clamav/bin/clamscan -r -v --debug --leave-temps aa.tar
LibClamAV debug: Loading databases from /opt/clamav/share/clamav
LibClamAV debug: Loading /opt/clamav/share/clamav/main.cvd
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = 486d65d0e35f87e7bca148052cdc6e67
LibClamAV debug: in cli_untgz()
LibClamAV debug: Unpacking /var/tmp//clamav-193666ae0ccf7750/COPYING
LibClamAV debug: Unpacking /var/tmp//clamav-193666ae0ccf7750/main.db
LibClamAV debug: Unpacking /var/tmp//clamav-193666ae0ccf7750/main.hdb
LibClamAV debug: Unpacking /var/tmp//clamav-193666ae0ccf7750/main.ndb
LibClamAV debug: Loading databases from 
/var/tmp//clamav-193666ae0ccf7750
LibClamAV debug: Loading /var/tmp//clamav-193666ae0ccf7750/main.db
LibClamAV debug: Initializing main node
LibClamAV debug: Initializing trie
LibClamAV debug: Initializing BM tables
LibClamAV debug: in cli_bm_init()
LibClamAV debug: BM: Number of indexes = 63744
LibClamAV debug: Loading /var/tmp//clamav-193666ae0ccf7750/main.hdb
LibClamAV debug: Initializing md5 list structure
LibClamAV debug: Loading /var/tmp//clamav-193666ae0ccf7750/main.ndb
LibClamAV debug: Loading /opt/clamav/share/clamav/daily.cvd
LibClamAV debug: in cli_cvdload()
LibClamAV debug: MD5(.tar.gz) = 3f5036d5adb949238c34b50c9ae6e2c6
LibClamAV debug: in cli_untgz()
LibClamAV debug: Unpacking /var/tmp//clamav-d5a45cd07e2ee865/COPYING
LibClamAV debug: Unpacking /var/tmp//clamav-d5a45cd07e2ee865/daily.db
LibClamAV debug: Unpacking /var/tmp//clamav-d5a45cd07e2ee865/daily.hdb
LibClamAV debug: Unpacking /var/tmp//clamav-d5a45cd07e2ee865/daily.ndb
LibClamAV debug: Unpacking /var/tmp//clamav-d5a45cd07e2ee865/daily.zmd
LibClamAV debug: Loading databases from 
/var/tmp//clamav-d5a45cd07e2ee865
LibClamAV debug: Loading /var/tmp//clamav-d5a45cd07e2ee865/daily.db
LibClamAV debug: Loading /var/tmp//clamav-d5a45cd07e2ee865/daily.hdb
LibClamAV debug: Loading /var/tmp//clamav-d5a45cd07e2ee865/daily.ndb
Scanning aa.tar
LibClamAV debug: Recognized POSIX tar file
LibClamAV debug: in cli_scantar()
LibClamAV debug: In untar(/var/tmp//clamav-60a3f46bcf4ced06, 4)
LibClamAV Error: Can't create temporary file : No such file or 
directory
LibClamAV debug: 4 15 0
LibClamAV debug: Tar: Unable to create temporary file
LibClamAV debug: Virus offset: 1024, expected: 0 (Eicar-Test-Signature)
LibClamAV debug: Virus offset: 2087, expected: 0 (Eicar-Test-Signature)
LibClamAV debug: Calculated MD5 checksum: 
bd469cc4164007dac9ea45b14b479089
aa.tar: Unable to create temporary file
--- SCAN SUMMARY ---
Known viruses: 31633
Scanned directories: 0
Scanned files: 1
Infected files: 0
Data scanned: 0.01 MB
I/O buffer size: 131072 bytes
Time: 1.895 sec (0 m 1 s)

Temporary directory /var/tmp//clamav-60a3f46bcf4ced06 created by 
clamscan
have permission rwx-- and is owned by root:root but /var/tmp is
rwxrwxrwx.

Please help me.
Looks like the wrong user/group is working this file.
-- Dale
___
http://lurker.clamav.net/list/clamav-users.html


Re: [Clamav-users] LibClamAV ERROR with tar archives

2005-03-17 Thread clam
 LibClamAV Error: Can't create temporary file : No such file or directory

Define NAME_MAX, since it is not in sys/param.h.

I.e.
#define NAME_MAX 255

//Daniel

___
http://lurker.clamav.net/list/clamav-users.html


R: [Clamav-users] LibClamAV ERROR with tar archives

2005-03-17 Thread Administrator
Hi,
Before to run ./configure and make i have tested the parameter with getconf
NAME_MAX /var and the result was 255.
Now, with the new define in sys/param.h the clamscan command function
correctly and libclamav does not return any error.
Thanks for your help.

//Alberto

--
From:  [EMAIL PROTECTED] on behalf of
[EMAIL PROTECTED]:[EMAIL PROTECTED]
Sent:  Thursday, March 17, 2005 12:08:08 PM
To:'clamav-users@lists.clamav.net'
Subject:   Re: [Clamav-users] LibClamAV ERROR with tar archives
Auto forwarded by a Rule

 LibClamAV Error: Can't create temporary file : No such file or 
 directory

Define NAME_MAX, since it is not in sys/param.h.

I.e.
#define NAME_MAX 255

//Daniel

___
http://lurker.clamav.net/list/clamav-users.html
___
http://lurker.clamav.net/list/clamav-users.html