From e005f9f0ff176fa01e85fe5e9ad40c05051d4c94 Mon Sep 17 00:00:00 2001 From: chip Date: Thu, 22 Nov 2001 01:41:19 +0000 Subject: [PATCH] 2001-11-21 Chip Salzenberg * support/nfs/exports.c (parseopts): Accept old-style "crossmnt" option, for old xtabs. --- ChangeLog | 1 + support/nfs/exports.c | 4 ++++ 2 files changed, 5 insertions(+) diff --git a/ChangeLog b/ChangeLog index 10b2a13..d82c70a 100644 --- a/ChangeLog +++ b/ChangeLog @@ -6,6 +6,7 @@ * support/nfs/exports.c (efname): Added: current exports file name. (setnfsexportent): Set it. (endnfsexportent, parseopts, getexport, syntaxerr): Use it. + (parseopts): Accept old-style "crossmnt" option, for old xtabs. 2001-10-11 Chip Salzenberg diff --git a/support/nfs/exports.c b/support/nfs/exports.c index 5a8e7e9..0c25277 100644 --- a/support/nfs/exports.c +++ b/support/nfs/exports.c @@ -309,6 +309,10 @@ parseopts(char *cp, struct exportent *ep) ep->e_flags |= NFSEXP_CROSSMNT; else if (!strcmp(opt, "hide")) ep->e_flags &= ~NFSEXP_CROSSMNT; + else if (!strcmp(opt, "crossmnt")) /* old style */ + ep->e_flags |= NFSEXP_CROSSMNT; + else if (!strcmp(opt, "nocrossmnt")) /* old style */ + ep->e_flags &= ~NFSEXP_CROSSMNT; else if (!strcmp(opt, "wdelay")) ep->e_flags |= NFSEXP_GATHERED_WRITES; else if (!strcmp(opt, "no_wdelay")) -- 2.39.5