bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

revisiting the extension/filefuncs.c:do_stat problem with symbolic links


From: Andrew J. Schorr
Subject: revisiting the extension/filefuncs.c:do_stat problem with symbolic links
Date: Tue, 3 Jan 2006 17:03:32 -0500
User-agent: Mutt/1.4.1i

I see that in 3.1.5, a new file extension/xreadlink.c has been added
to the distro.  However, the new xreadlink() function does not seem
to be used anywhere.  So my first thought was to fix the code
in extension/filefuncs.c by calling the new xreadlink function.
But after I took a look, I realized that it doesn't quite do exactly
what is needed for gawk (in particular, it doesn't leave 2 extra bytes
at the end of the string).

So the attached patch attempts to roll the xreadlink functionality
into a read_symlink function inside extension/xreadlink.c (and that would
allow us to remove the extension/xreadlink.c file from the distro).
Alternatively, we can patch the xreadlink code to do what is needed for gawk.

Thoughts?

Regards,
Andy

Attachment: filefuncs.patch
Description: Text document


reply via email to

[Prev in Thread] Current Thread [Next in Thread]