diff options
author | hansp <hansp> | 2001-05-05 00:42:57 +0000 |
---|---|---|
committer | hansp <hansp> | 2001-05-05 00:42:57 +0000 |
commit | 81448d718e12ce4b1cf4a5061c36ae90a7fe06eb (patch) | |
tree | cd58ef6d961e20e6ee9beb8b1d97fae618d055f6 /shares-conf.in | |
parent | 5057f1b90791572470ff123abac8955cae50c253 (diff) |
2001-05-04 Hans Petter Jansson <hpj@ximian.com>
* shares-conf.in (read_exports): Parse NFS exports without options correctly.
(print_xml): Print a default name for unnamed shares.
Diffstat (limited to 'shares-conf.in')
-rwxr-xr-x | shares-conf.in | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/shares-conf.in b/shares-conf.in index 7e7d8db..d22af08 100755 --- a/shares-conf.in +++ b/shares-conf.in @@ -1089,7 +1089,8 @@ sub read_exports for $client (@line) { - ($spec, $options) = ($client =~ /^([^\(]+)\(([^\)]+)/); + ($spec) = ($client =~ /^([^\(]+)/); + ($options) = ($client =~ /\(([^\)]+)/); push @$clients, $spec; # Spec if ($options =~ /rw/) { push @$clients, 1; } # Writeable else { push @$clients, 0; } # Writeable @@ -1527,6 +1528,8 @@ sub xml_print } elsif ($shares[0] eq "nfs") { + &xst_xml_print_line ("<name>none</name>"); + my $clients = $shares[2]; while (@$clients) { |