public inbox for linux-kernel@vger.kernel.org
 help / color / mirror / Atom feed
* AT_EXECFN not useful
@ 2008-08-14 17:15 Ulrich Drepper
  2008-08-15  5:10 ` John Reiser
  0 siblings, 1 reply; 4+ messages in thread
From: Ulrich Drepper @ 2008-08-14 17:15 UTC (permalink / raw)
  To: Linux Kernel, John Reiser; +Cc: Linus Torvalds, Andrew Morton

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

I've just removed the support for AT_EXECFN again from glibc.  The
information isn't useful because the path name isn't normalized.  I.e.,
it's not the actual binary path if symlinks are followed during the
resolution.  This makes it unusable for the $ORIGIN handling.  This is
on top of the problem with relative paths.

Unless somebody has another use case where this is useful I suggest
removing AT_EXECFN support again.  It's just superfluous work and memory
use.

Of course I wouldn't object to a real implementation which always gives
me the full, normalized path name of the executable...

- --
➧ Ulrich Drepper ➧ Red Hat, Inc. ➧ 444 Castro St ➧ Mountain View, CA ❖
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.9 (GNU/Linux)

iEYEARECAAYFAkikaDEACgkQ2ijCOnn/RHSFvACgoWYhqrfJZfRe4ypFUQQR9soJ
km8AnRchCWP+irhGcgoSzd2S8iYQi7zm
=E4tz
-----END PGP SIGNATURE-----

^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2008-08-18 15:06 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-08-14 17:15 AT_EXECFN not useful Ulrich Drepper
2008-08-15  5:10 ` John Reiser
2008-08-15 23:59   ` Ulrich Drepper
2008-08-18 15:04     ` John Reiser

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox