exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)
This commit is contained in:
parent
232a064f3a
commit
4fe7daeca4
|
@ -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