This is the mail archive of the
libc-alpha@sourceware.org
mailing list for the glibc project.
[PATCH 0/2] Make ldd more portable and robust
- From: "P. J. McDermott" <pjm at nac dot net>
- To: libc-alpha at sourceware dot org
- Date: Thu, 22 Nov 2012 22:39:28 -0500
- Subject: [PATCH 0/2] Make ldd more portable and robust
- Reply-to: libc-alpha at sourceware dot org, "P. J. McDermott" <pjm at nac dot net>
Hi,
The following patchset makes ldd more portable and robust. With this,
ldd should work as expected on any sufficiently POSIX-conformant shell.
The interpreter in the magic number line could be changed from @BASH@ to
/bin/sh or some general @SH@ variable, and .bash could be removed from
the file name. Though I haven't done either in these patches.
(I don't have a copyright assignment agreement on file for glibc. I
doubt these changes would be considered legally significant, but I can
send in papers if necessary.)
Thanks,
--
P. J. McDermott
http://www.pehjota.net/
http://www.pehjota.net/contact.html