-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 [moved to bug-gnulib; I accidentally posted the patch series to bug-coreutils]
According to Eric Blake on 10/7/2009 11:00 AM: > Eric Blake <ebb9 <at> byu.net> writes: > >> The patch copies from areadlink.c, as well as link_follow earlier in >> linkat.c, to create two new fd-relative helpers. For now, I didn't see >> any reason to expose them, but areadlinkat may someday be worth making >> into a full-blown module. > > Further looking shows that: > > findutils' listfile.c currently uses a home-rolled get_link_name_at which > blindly changes the working directory, and calls xalloc_die on allocation > failure. Perfect candidate for xreadlinkat, to be more efficient on > platforms > with native readlinkat. And xreadlinkat implies areadlinkat. > > coreutils' copy.c currently uses areadlink_with_size for copying/moving > symlinks across partitions, but since we want to rewrite this to use fts, we > will need an *at variant. > > So, I've written three new modules: areadlinkat, areadlinkat-with-size, and > xreadlinkat; mirroring the three existing modules areadlink, areadlink-with- > size, xreadlink. > > Eric Blake (4): > areadlink, areadlink-with-size: add tests > areadlinkat: new module > xreadlinkat: new module > areadlinkat-with-size: new module Based on Jim's preliminary review, I've now pushed this series. - -- Don't work too hard, make some time for fun as well! Eric Blake e...@byu.net -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.9 (Cygwin) Comment: Public key at home.comcast.net/~ericblake/eblake.gpg Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org/ iEYEARECAAYFAkrNQhMACgkQ84KuGfSFAYBluwCgt7klY438DrT2En4hvM+fCXnX s4sAnRBwhu1xnnFr92GcLk6At+Vvrk1A =5pqZ -----END PGP SIGNATURE-----