Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 15 | Index: 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 Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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'})); |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 28 | @@ -87,6 +87,11 @@ else { |
| 29 | delete($opts{'no_subtree_check'}); |
| 30 | delete($opts{'subtree_check'}); |
Patrick Williams | b48b7b4 | 2016-08-17 15:04:38 -0500 | [diff] [blame] | 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 | |
Brad Bishop | 316dfdd | 2018-06-25 12:45:53 -0400 | [diff] [blame] | 38 | delete($opts{'nohide'}); |
| 39 | delete($opts{'hide'}); |