ref: 4fe7daeca4d8cc06e50b5862f3f6bc9c71cbf835
parent: 232a064f3a9afcd9a5c1de45f1558e4522c511bd
author: cinap_lenrek <cinap_lenrek@felloff.net>
date: Sat Feb 13 23:49:48 EST 2016
exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)
--- a/sys/src/cmd/exportfs/exportsrv.c
+++ b/sys/src/cmd/exportfs/exportsrv.c
@@ -639,6 +639,8 @@
arg[3] = nil;
exec(arg[0], arg);
+ arg[0] = "/bin/exportfs";
+ exec(arg[0], arg);
_exits("whoops: exec failed");
return -1;
}