From 394e388e1e62d88f2771a3a65ed34c63c1e481bf Mon Sep 17 00:00:00 2001 From: NeilBrown Date: Tue, 15 Nov 2016 12:03:24 -0500 Subject: Remove all use of /var/lib/nfs/xtab /var/lib/nfs/xtab is only used to find out what has been exported to the kernel. This is more reliably done by reading /proc/fs/nfs{,d}/export and nfs-utils uses that file if is available. So xtab is only need if you have an incredibly ancient kernel which doesn't have /proc/fs/nfs/export (and so which only supports NFSv2) or if /proc is not mounted. Neither of these are credible contexts to run a modern nfs-utils, so stop creating or reading the xtab file. Signed-off-by: NeilBrown Signed-off-by: Steve Dickson --- utils/mountd/auth.c | 1 - 1 file changed, 1 deletion(-) (limited to 'utils/mountd/auth.c') diff --git a/utils/mountd/auth.c b/utils/mountd/auth.c index 0881d9a..b612d88 100644 --- a/utils/mountd/auth.c +++ b/utils/mountd/auth.c @@ -46,7 +46,6 @@ void auth_init(void) { auth_reload(); - xtab_mount_write(); } /* -- cgit