summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorcinap_lenrek <cinap_lenrek@felloff.net>2016-02-14 04:49:48 +0100
committercinap_lenrek <cinap_lenrek@felloff.net>2016-02-14 04:49:48 +0100
commit4fe7daeca4d8cc06e50b5862f3f6bc9c71cbf835 (patch)
tree27aa5ff67577cc7a09fcb17578c012f0d6d5282c /sys
parent232a064f3a9afcd9a5c1de45f1558e4522c511bd (diff)
exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)
Diffstat (limited to 'sys')
-rw-r--r--sys/src/cmd/exportfs/exportsrv.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/src/cmd/exportfs/exportsrv.c b/sys/src/cmd/exportfs/exportsrv.c
index ec636081d..67b643253 100644
--- a/sys/src/cmd/exportfs/exportsrv.c
+++ b/sys/src/cmd/exportfs/exportsrv.c
@@ -639,6 +639,8 @@ openmount(int sfd)
arg[3] = nil;
exec(arg[0], arg);
+ arg[0] = "/bin/exportfs";
+ exec(arg[0], arg);
_exits("whoops: exec failed");
return -1;
}