exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)

This commit is contained in:
cinap_lenrek 2016-02-14 04:49:48 +01:00
parent 232a064f3a
commit 4fe7daeca4

View file

@ -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;