From 18fc7a86a2a1213762cc4107565903127efadafc Mon Sep 17 00:00:00 2001 From: neilbrown Date: Mon, 4 Aug 2003 03:14:23 +0000 Subject: Open channel files O_WRONLY, and improve mountlist support. --- support/nfs/nfsexport.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'support/nfs') diff --git a/support/nfs/nfsexport.c b/support/nfs/nfsexport.c index 0e8b52b..782cc50 100644 --- a/support/nfs/nfsexport.c +++ b/support/nfs/nfsexport.c @@ -93,7 +93,7 @@ nfsexport(struct nfsctl_export *exp) { struct nfsctl_arg arg; int fd; - if ((fd=open("/proc/net/rpc/nfsd.fh/channel", O_RDWR))>= 0) { + if ((fd=open("/proc/net/rpc/nfsd.fh/channel", O_WRONLY))>= 0) { close(fd); return exp_unexp(exp, 1); } @@ -108,7 +108,7 @@ nfsunexport(struct nfsctl_export *exp) struct nfsctl_arg arg; int fd; - if ((fd=open("/proc/net/rpc/nfsd.fh/channel", O_RDWR))>= 0) { + if ((fd=open("/proc/net/rpc/nfsd.fh/channel", O_WRONLY))>= 0) { close(fd); return exp_unexp(exp, 0); } -- cgit