changelog shortlog tags branches files raw gz bz2 help

Mercurial > hg > plan9front / changeset: exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)

changeset 5095: 2c3d9125dcdf
parent 5094: ccc821183644
child 5096: 65abc13ef7a1
author: cinap_lenrek@felloff.net
date: Sun, 14 Feb 2016 04:49:48 +0100
files: sys/src/cmd/exportfs/exportsrv.c
description: exportfs: retry execing ourselfs as "/bin/exportfs" (argv0 might be relative path)
     1.1--- a/sys/src/cmd/exportfs/exportsrv.c
     1.2+++ b/sys/src/cmd/exportfs/exportsrv.c
     1.3@@ -639,6 +639,8 @@ openmount(int sfd)
     1.4 	arg[3] = nil;
     1.5 
     1.6 	exec(arg[0], arg);
     1.7+	arg[0] = "/bin/exportfs";
     1.8+	exec(arg[0], arg);
     1.9 	_exits("whoops: exec failed");	
    1.10 	return -1;
    1.11 }