It would be great if there would be fixes of that kind in ClamAV:

1) add support for QNX NTO in configure.in:

nto*)
     if test "$have_pthreads" = "yes"; then
        AC_DEFINE(CL_THREAD_SAFE,1,[thread safe])
        disable_gethostbyname_r="no"
     fi
    AC_DEFINE(C_NTO,1,[os is QNX Neutrino])
    ;;

2) fix temporary file naming for QNX in blob.c:

#ifndef C_NTO
        snprintf(fullname, sizeof(fullname) - 1 - suffixLen, "%s/%.*sXXXXXX", 
dir,
                (int)(sizeof(fullname) - 9 - suffixLen - strlen(dir)), 
filename);
#if     defined(C_LINUX) || defined(C_BSD) || defined(HAVE_MKSTEMP) || 
defined(C_SOLARIS) || defined(C_CYGWIN)
        cli_dbgmsg("fileblobSetFilename: mkstemp(%s)\n", fullname);
        fd = mkstemp(fullname);
#else
        (void)mktemp(fullname);
        fd = open(fullname, O_WRONLY|O_CREAT|O_EXCL|O_TRUNC|O_BINARY, 0600);
#endif
#else
        /* we are in QNX - so here is annoying bug with 48 character names */
        snprintf(fullname, sizeof(fullname) - 1, "%s/avtmpXXXXXXXXXXXX", dir);
        fd = mkstemp(fullname);
#endif


that would be great if these fixes are considered for CVS.
  

-- 
Best regards,
 -=MikeP=-                          mailto:[EMAIL PROTECTED]

_______________________________________________
http://lurker.clamav.net/list/clamav-devel.html

Reply via email to