Commit f0bea4de authored by Mike Hibler's avatar Mike Hibler

Put all four of the network address into the /share export.

Otherwise, /share won't get exported to networks smaller than /24.
parent d8d2e1b4
......@@ -25,7 +25,7 @@ sub Install($$$)
# Looking for "-network a.b.c.d -mask a.b.c"
[qr{share\s+\-netmask\s+[\d\.]+\s+\-mask\s+[\d\.]+\s},
'"share\t-network' .
"${a}.${b}.${c} -mask " . $CONTROL_NETMASK . ' "'],
"${a}.${b}.${c}.${d} -mask " . $CONTROL_NETMASK . ' "'],
);
Phase "exports", "Updating $EXPORTS_HEAD", sub {
QueryReplaceFileFatal($EXPORTS_HEAD, \@replacements);
......@@ -101,7 +101,7 @@ sub Install($$$)
my ($a,$b,$c,$d) =
($CONTROL_NETWORK =~ /^(\d*)\.(\d*)\.(\d*)\.(\d*)/);
push(@exports_lines,
"$realdir\t-network ${a}.${b}.${c} ".
"$realdir\t-network ${a}.${b}.${c}.${d} ".
"-mask $CONTROL_NETMASK -maproot=root -ro -alldirs");
if ($PROTOGENI_GENIRACK) {
push(@exports_lines,
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment