diff --git a/net/net-lib.pl b/net/net-lib.pl index cbe5efbe22..fd73b8a1df 100755 --- a/net/net-lib.pl +++ b/net/net-lib.pl @@ -21,8 +21,10 @@ # Special case for Slackware 9.1+ do "$gconfig{'os_type'}-9.1-ALL-lib.pl"; } -elsif ($gconfig{'os_type'} eq 'debian-linux' && -d "/etc/netplan" && - &has_command("netplan")) { +elsif ($gconfig{'os_type'} eq 'debian-linux' && + &has_command("netplan") && + -d "/etc/netplan" && + glob("/etc/netplan/*")) { # Special case for newer Ubuntu versions do "netplan-lib.pl"; } diff --git a/password_change.cgi b/password_change.cgi index f84f779058..64cbe0d07f 100755 --- a/password_change.cgi +++ b/password_change.cgi @@ -201,19 +201,13 @@ if (&get_product_name() eq 'usermin' && # Show ok page &header(undef, undef, undef, undef, 1, 1); - -print "