From mboxrd@z Thu Jan 1 00:00:00 1970 From: Michael Tremer To: development@lists.ipfire.org Subject: Re: [PATCH] dhcp.cgi: Fix for bug #12050 Date: Tue, 04 Jun 2019 13:33:06 +0100 Message-ID: <51A1F3F9-9C2E-4529-88F0-CAED930F3CFD@ipfire.org> In-Reply-To: MIME-Version: 1.0 Content-Type: multipart/mixed; boundary="===============7631078437752652110==" List-Id: --===============7631078437752652110== Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: quoted-printable I think this patch has been submitted before. Why was it submitted again? What has changed? -Michael > On 4 Jun 2019, at 11:24, Bernhard Bitsch wrote: >=20 > Save fixed leases to file after addition of a new lease >=20 > Signed-off-by: Bernhard Bitsch >=20 > --- > html/cgi-bin/dhcp.cgi | 3 +++ > 1 file changed, 3 insertions(+) >=20 > diff --git a/html/cgi-bin/dhcp.cgi b/html/cgi-bin/dhcp.cgi > index 675d80012..19c55eb6d 100644 > --- a/html/cgi-bin/dhcp.cgi > +++ b/html/cgi-bin/dhcp.cgi > @@ -443,6 +443,9 @@ if ($dhcpsettings{'ACTION'} eq $Lang::tr{'add'}.'2') { > $dhcpsettings{'FIX_ROOTPATH'} =3D &Header::cleanhtml($dhcpsettings{'FIX_RO= OTPATH'}); > if ($dhcpsettings{'KEY2'} eq '') { #add or edit ? > unshift (@current2, "$dhcpsettings{'FIX_MAC'},$dhcpsettings{'FIX_ADDR'= },$dhcpsettings{'FIX_ENABLED'},$dhcpsettings{'FIX_NEXTADDR'},$dhcpsettings{'F= IX_FILENAME'},$dhcpsettings{'FIX_ROOTPATH'},$dhcpsettings{'FIX_REMARK'}\n"); > + open(FILE, ">$filename2") or die 'Unable to open fixed lease file.'; > + print FILE @current2; > + close(FILE); > &General::log($Lang::tr{'fixed ip lease added'}); >=20 > # Enter edit mode > -- > 2.21.0.windows.1 >=20 --===============7631078437752652110==--