iostats: bind /srv into the namespace, its magic

programs that try to use /srv would choke when running
under iostats, because we intercepted operations on the
special, magic fd passing; we should instead give them
access to the real /srv.
This commit is contained in:
Ori Bernstein 2022-01-09 17:38:58 +00:00
parent 9e79aaceba
commit 4d872079d3

View file

@ -317,6 +317,7 @@ main(int argc, char **argv)
bind("#c/ppid", "/dev/ppid", MREPL);
bind("#e", "/env", MREPL|MCREATE);
bind("#d", "/fd", MREPL);
bind("#s", "/srv", MREPL|MCREATE);
if(chdir(buf) < 0)
sysfatal("chdir: %r");