From: chip Date: Thu, 22 Nov 2001 01:41:19 +0000 (+0000) Subject: 2001-11-21 Chip Salzenberg X-Git-Tag: nfs-utils-1-0~14 X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e005f9f0ff176fa01e85fe5e9ad40c05051d4c94;p=nfs-utils.git 2001-11-21 Chip Salzenberg * support/nfs/exports.c (parseopts): Accept old-style "crossmnt" option, for old xtabs. --- 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"))