git: 9front

Download patch

ref: 92d746eb7277ba50f50d950a1941cb5e8f408147
parent: 4b40d6060132a3716a9153c43af0ec7727504e7c
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;
 }
--