chpasswd: Use well known 'General::swroot' instead of 'swroot' .

Message ID 1507298874-8668-1-git-send-email-erik.kapfer@ipfire.org
State Dropped
Headers
Series chpasswd: Use well known 'General::swroot' instead of 'swroot' . |

Commit Message

Erik Kapfer Oct. 7, 2017, 1:07 a.m. UTC
  ---
 html/cgi-bin/chpasswd.cgi | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)
  

Patch

diff --git a/html/cgi-bin/chpasswd.cgi b/html/cgi-bin/chpasswd.cgi
index a00f9cb..6aa57d0 100644
--- a/html/cgi-bin/chpasswd.cgi
+++ b/html/cgi-bin/chpasswd.cgi
@@ -34,15 +34,14 @@  my %mainsettings;
 my %proxysettings;
 my %netsettings;
 my %temp;
-my $swroot;
 my $errormessage;
 my $language;
 
 $proxysettings{'NCSA_MIN_PASS_LEN'} = 6;
 
 ### Initialize environment
-&readhash("${swroot}/main/settings", \%mainsettings);
-&readhash("${swroot}/proxy/advanced/settings", \%proxysettings);
+&readhash("${General::swroot}/main/settings", \%mainsettings);
+&readhash("${General::swroot}/proxy/advanced/settings", \%proxysettings);
 $language = $mainsettings{'LANGUAGE'};
 
 ### Initialize language
@@ -52,9 +51,9 @@  require '/var/ipfire/general-functions.pl';
 require "${General::swroot}/lang.pl";
 require "${General::swroot}/header.pl";
 
-my $userdb = "$swroot/proxy/advanced/ncsa/passwd";
+my $userdb = "${General::swroot}/proxy/advanced/ncsa/passwd";
 
-&readhash("$swroot/ethernet/settings", \%netsettings);
+&readhash("${General::swroot}/ethernet/settings", \%netsettings);
 
 my $success = 0;
 
@@ -295,3 +294,4 @@  sub getcgihash
 
 # -------------------------------------------------------------------
 
+