I have been hunting down the cause of these strange error
messages I was getting while running japhar on my solaris
box.

(they look like this)
mmap: Invalid argument


The problem code was here.


lib/libruntime/zextract.c:528


      *buf = mmap(0, *length + difference, PROT_READ,
                  MAP_PRIVATE, zipf->fd,
                  offset);
      if (*buf != MAP_FAILED)
        {
          *buf += difference;

          return Z_OK;
        }

      perror("mmap");





Above the code was this dire warning

  /*
   * XXX This is an ugly hack,  I don't know what I am doing, nor do I know
   * XXX the .zip file format.  No idea if the version and the +4 is
   * XXX related, but it was on my system. :-) [pere 1998-05-14]
   */



This is the only place in the code where these warnings are getting produced
so I am thinking that they are related to the +4 hack.

Could someone provide me with some more info on why this might be
breaking?




Mo DeJong
dejong at cs.umn.edu

Reply via email to