mirror of
https://git.savannah.gnu.org/git/coreutils.git
synced 2026-11-17 18:02:09 +03:00
stdbuf: fix helper lib identification on some platforms
* src/stdbuf.c (main): Pass the path of `stdbuf` rather than the command it's running to the search function. This is significant on platforms without /proc/self/exe Reported by Bruno Haible
This commit is contained in:
1 parent
0d89a42bff
commit
197cd0994d
1 file changed
+1
-1
+1
-1
@@ -354,7 +354,7 @@ main (int argc, char **argv)
|
||||
|
||||
/* Try to preload libstdbuf first from the same path as
|
||||
stdbuf is running from. */
|
||||
set_program_path (argv[0]);
|
||||
set_program_path (program_name);
|
||||
if (!program_path)
|
||||
program_path = xstrdup (PKGLIBDIR); /* Need to init to non NULL. */
|
||||
set_LD_PRELOAD ();
|
||||
|
||||
Reference in new issue
Block a user