You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
stdbuf cannot use libstdbuf on the same directory if /proc is masked #11134
It seems GNU use argv[0]. But if we need to care about secutiry, we could use AT_EXECFN at least on Linux. I don't know what can we use for other platforms.
This is not security critical as far as I know, since stdbuf is not seteuid. I think the path discovery should be implemented the same way than in GNU coreutils.
Activity
oech3 commentedon Feb 26, 2026
@Ecordonnier
oech3 commentedon Feb 27, 2026
It seems GNU use argv[0]. But if we need to care about secutiry, we could use AT_EXECFN at least on Linux. I don't know what can we use for other platforms.
Ecordonnier commentedon Feb 27, 2026
This is not security critical as far as I know, since stdbuf is not seteuid. I think the path discovery should be implemented the same way than in GNU coreutils.
Ecordonnier commentedon Feb 27, 2026
What happens if those test steps are executed with GNU coreutils?
oech3 commentedon Feb 27, 2026
GNU tries to search libstdbuf based on argv[0] i.e. stdbuf success if libstdbuf.so is present at same dir with argv[0].
oech3 commentedon Mar 10, 2026
GNU found libstdbuf from
PATH:oech3 commentedon Apr 1, 2026
Since std rejected improving current_exe, I'll wait #10773 's uucore function.
oech3 commentedon Apr 20, 2026
I still have no idea how to do #11134 (comment) on non-Llinux.