httpd-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeff Trawick <trawi...@bellsouth.net>
Subject Re: cvs commit: apache-2.0/src/lib/apr/file_io/unix seek.c
Date Tue, 18 Apr 2000 03:42:03 GMT
yep, makes sense to me...  I forgot to set rc to errno on an
lseek() failure...

how about this?

    else {
        rc = lseek(thefile->filedes, pos, SEEK_SET);

        if (rc != -1 ) {
            thefile->bufpos = thefile->dataRead = 0;
            rc = 0;
        }
        else {
            rc = errno;
        }
    }

    return rc;
}


-- 
Jeff Trawick | trawick@ibm.net | PGP public key at web site:
     http://www.geocities.com/SiliconValley/Park/9289/
          Born in Roswell... married an alien...

Mime
View raw message