Mail Archives: djgpp-workers/2002/12/22/09:46:34
Hello.
"cvs-sandmann AT delorie DOT com" wrote:
>
> Update by cvs id: sandmann
> Update of /cvs/djgpp/djgpp/src/libc/compat/unistd
>
> Modified Files:
> _irdlink.c
> Log Message:
> Image size reductions (call _read instead of read).
>
> ===================================================================
> RCS file: /cvs/djgpp/djgpp/src/libc/compat/unistd/_irdlink.c,v
> retrieving revision 1.5
> retrieving revision 1.6
> diff -p -2 -r1.5 -r1.6
> *** djgpp/src/libc/compat/unistd/_irdlink.c 14 Jun 2002 14:24:30 -0000 1.5
> --- djgpp/src/libc/compat/unistd/_irdlink.c 21 Dec 2002 23:18:12 -0000 1.6
> *************** int __internal_readlink(const char * __p
> *** 99,103 ****
> }
>
> ! bytes_read = read(fd, &buf, _SYMLINK_FILE_LEN);
>
> if (__fhandle)
> --- 99,103 ----
> }
>
> ! bytes_read = _read(fd, &buf, _SYMLINK_FILE_LEN);
>
> if (__fhandle)
Are you sure this doesn't break symlinks? Symlinks are text files with
newlines, so don't we need read rather than _read, to convert CRLFs to
newlines? I would check this, but I don't want to do a 'cvs update', until
I've hunted down some other bugs.
Bye, Rich =]
--
Richard Dawe [ http://www.phekda.freeserve.co.uk/richdawe/ ]
- Raw text -