diff options
Diffstat (limited to 'meta-webserver/recipes-webadmin/webmin/files/nfs-export.patch')
-rw-r--r-- | meta-webserver/recipes-webadmin/webmin/files/nfs-export.patch | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/meta-webserver/recipes-webadmin/webmin/files/nfs-export.patch b/meta-webserver/recipes-webadmin/webmin/files/nfs-export.patch new file mode 100644 index 000000000..c17e3b216 --- /dev/null +++ b/meta-webserver/recipes-webadmin/webmin/files/nfs-export.patch | |||
@@ -0,0 +1,39 @@ | |||
1 | commit e48f61d2f6df32a518bcb84db8c6eacfe5435c32 | ||
2 | Author: Yu Ke <ke.yu@intel.com> | ||
3 | Date: Fri Oct 28 14:40:51 2011 +0800 | ||
4 | |||
5 | NFS export: fix syntax issue | ||
6 | |||
7 | fix two syntax issue in /etc/exports: | ||
8 | 1. if it is exported to everyone, should use "*", e.g. "/export *(xxx)" | ||
9 | 2. explicitly specify subtree_check or no_subtree_check, required by latest nfs-utils | ||
10 | |||
11 | Upstream-Status: Pending | ||
12 | |||
13 | Signed-off-by: Yu Ke <ke.yu@intel.com> | ||
14 | |||
15 | diff --git a/exports/save_export.cgi b/exports/save_export.cgi | ||
16 | index 3bc2f97..3e60298 100755 | ||
17 | --- a/exports/save_export.cgi | ||
18 | +++ b/exports/save_export.cgi | ||
19 | @@ -40,7 +40,7 @@ else { | ||
20 | &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'})); | ||
28 | @@ -70,6 +70,11 @@ else { | ||
29 | |||
30 | delete($opts{'no_subtree_check'}); delete($opts{'subtree_check'}); | ||
31 | $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 | |||
38 | delete($opts{'nohide'}); delete($opts{'hide'}); | ||
39 | $opts{'nohide'} = "" if ($in{'nohide'}); | ||