blob: 426d63737e840f22b7b168e2641cc9d685a64f9e [file] [log] [blame]
Patrick Williamsb48b7b42016-08-17 15:04:38 -05001commit e48f61d2f6df32a518bcb84db8c6eacfe5435c32
2Author: Yu Ke <ke.yu@intel.com>
3Date: Fri Oct 28 14:40:51 2011 +0800
4
5NFS export: fix syntax issue
6
7fix two syntax issue in /etc/exports:
81. if it is exported to everyone, should use "*", e.g. "/export *(xxx)"
92. explicitly specify subtree_check or no_subtree_check, required by latest nfs-utils
10
11Upstream-Status: Pending
12
13Signed-off-by: Yu Ke <ke.yu@intel.com>
14
Brad Bishop316dfdd2018-06-25 12:45:53 -040015Index: webmin-1.850/exports/save_export.cgi
16===================================================================
17--- webmin-1.850.orig/exports/save_export.cgi
18+++ webmin-1.850/exports/save_export.cgi
19@@ -50,7 +50,7 @@ else {
Patrick Williamsb48b7b42016-08-17 15:04:38 -050020 &error(&text('save_enetmask', $in{'netmask'}));
21 $exp{'host'} = $in{'network'}."/".$in{'netmask'};
22 }
23- elsif ($in{'mode'} == 3) { $exp{'host'} = ""; }
24+ elsif ($in{'mode'} == 3) { $exp{'host'} = "*"; }
25 else {
26 $in{'host'} =~ /\*/ || &to_ipaddress($in{'host'}) ||
27 &error(&text('save_ehost', $in{'host'}));
Brad Bishop316dfdd2018-06-25 12:45:53 -040028@@ -87,6 +87,11 @@ else {
29 delete($opts{'no_subtree_check'});
30 delete($opts{'subtree_check'});
Patrick Williamsb48b7b42016-08-17 15:04:38 -050031 $opts{'no_subtree_check'} = "" if ($in{'no_subtree_check'});
32+ if ($in{'no_subtree_check'}) {
33+ $opts{'no_subtree_check'} = "";
34+ } else {
35+ $opts{'subtree_check'} = "";
36+ }
37
Brad Bishop316dfdd2018-06-25 12:45:53 -040038 delete($opts{'nohide'});
39 delete($opts{'hide'});