summaryrefslogtreecommitdiffstats
path: root/utils/exportfs
diff options
context:
space:
mode:
authorneilbrown <neilbrown>2003-07-03 01:28:13 +0000
committerneilbrown <neilbrown>2003-07-03 01:28:13 +0000
commitf68785e72129ab643d6c793bd5a11bdf0010eff9 (patch)
tree5b3a7df81cf6bd5553fe8aa549a372a6f398c45e /utils/exportfs
parent0f41eb8945d8116d69297dbd0aa748c02d580d36 (diff)
downloadnfs-utils-f68785e72129ab643d6c793bd5a11bdf0010eff9.tar.gz
nfs-utils-f68785e72129ab643d6c793bd5a11bdf0010eff9.tar.xz
nfs-utils-f68785e72129ab643d6c793bd5a11bdf0010eff9.zip
Fixes to make unexporting and exporting with wildcards
work more sensibly.
Diffstat (limited to 'utils/exportfs')
-rw-r--r--utils/exportfs/exportfs.c12
1 files changed, 8 insertions, 4 deletions
diff --git a/utils/exportfs/exportfs.c b/utils/exportfs/exportfs.c
index bd48e98..ab8a4a2 100644
--- a/utils/exportfs/exportfs.c
+++ b/utils/exportfs/exportfs.c
@@ -283,10 +283,14 @@ unexportfs(char *arg, int verbose)
for (exp = exportlist[htype]; exp; exp = exp->m_next) {
if (path && strcmp(path, exp->m_export.e_path))
continue;
- if (htype != exp->m_client->m_type
- || (htype == MCL_FQDN
- && !matchhostname(exp->m_export.e_hostname,
- hname)))
+ if (htype != exp->m_client->m_type)
+ continue;
+ if (htype == MCL_FQDN
+ && !matchhostname(exp->m_export.e_hostname,
+ hname))
+ continue;
+ if (htype != MCL_FQDN
+ && strcasecmp(exp->m_export.e_hostname, hname))
continue;
if (verbose) {
#if 0