-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Bogusław Brandys wrote: > Trog wrote: > >>>On Thu, 2005-02-17 at 09:55 +0000, Nigel Horne wrote: >>> >>> >>>>On Thursday 17 Feb 2005 09:31, -=MikeP=- wrote: >>>> >>>> >>>> >>>>>>>>> 2) there was a problem with scanning e-mails: I suppose it is the >>>>>>>>> problem of QNX: >>>>>>>>> >>>>>>>>> LibClamAV Error: Can't create temporary file: >>>>>>>>> /tmp/clamav-b6b8e6d1db0cd71b/Snowwhite and the Seven Dwarfs -The >>>>>>>>> Real Story!.eml049122: Filename too long >>>>>>>>> >>>>>>>>> LibClamAV Error: fileblobDestroy: file not saved: report to >>>>>>>>> [EMAIL PROTECTED] >>>>>>> >>>>>>>NAME_MAX is defined to 255 >>>>>>>PATH_MAX is defined to 1024 >>>>> >>>>>NH> So then, on your system what are the circumstances under which >>>>>open(..., >>>>>NH> O_CREAT) returns ENAMETOOLONG? >>>> >>>>>Documentation on open() says: >>>>>ENAMETOOLONG >>>>>The length of the path string exceeds PATH_MAX, or a pathname component is >>>>>longer than NAME_MAX. >>>> >>>>Well, it strikes me that neither of these is true in this case. Perhaps >>>>there's a bug in QNX, or >>>>have I missed something? >>> >>> >>>If definitely looks like a spurious error - does QNX have a problem with >>>spaces in filenames? >>> >>>MikeP, what happens if you try and create a file with a similar name and >>>path? >>> > > > I see it's created in /tmp. Try to create the same file in /tmp and not > in /tmp and check how is TMP_MAX set. I would be not surprised if it is > about 25 or 64 . I don't know if for QNX it is limited by system or > compiler runtime but if it's limited You have probably two choices : > write replacement for tmpfile() function (as I did for Windows) or set > TMP_MAX if it's possible. > > > Best Regards > Boguslaw Brandys
Maybe this could help : http://www.qnx.com/developers/docs/momentics621_docs/neutrino/technotes/qnx4fs.html Best Regards Boguslaw Brandys _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.0 (MingW32) Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org iD8DBQFCFJPetuGICzHOh+YRAoaQAJ4xiqzTXs9NAqzQiSDRFqLacFM/1gCdFMJo YPplGBud8Qk/2maeqdCMPnQ= =WkrZ -----END PGP SIGNATURE----- _______________________________________________ http://lists.clamav.net/cgi-bin/mailman/listinfo/clamav-devel