mirror of
git://git.9front.org/plan9front/plan9front
synced 2025-01-12 11:10:06 +00:00
exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)
This commit is contained in:
parent
232a064f3a
commit
4fe7daeca4
1 changed files with 2 additions and 0 deletions
|
@ -638,6 +638,8 @@ openmount(int sfd)
|
|||
arg[2] = mbuf;
|
||||
arg[3] = nil;
|
||||
|
||||
exec(arg[0], arg);
|
||||
arg[0] = "/bin/exportfs";
|
||||
exec(arg[0], arg);
|
||||
_exits("whoops: exec failed");
|
||||
return -1;
|
||||
|
|
Loading…
Reference in a new issue