diff options
author | Pádraig Brady <P@draigBrady.com> | 2011-09-01 15:23:17 +0100 |
---|---|---|
committer | Pádraig Brady <P@draigBrady.com> | 2011-09-01 15:27:58 +0100 |
commit | 197cd0994d93ea650efb86a4290e09a0fc63384f (patch) | |
tree | 922cb0c862c176bd04854349c7a4427fa4cc171f /src | |
parent | 0d89a42bff15d80574190537cc47f2f0aba24830 (diff) | |
download | coreutils-197cd0994d93ea650efb86a4290e09a0fc63384f.tar.xz |
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
Diffstat (limited to 'src')
-rw-r--r-- | src/stdbuf.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/stdbuf.c b/src/stdbuf.c index 6fd803c95..0e2006b92 100644 --- a/src/stdbuf.c +++ b/src/stdbuf.c @@ -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 (); |