Procházet zdrojové kódy

provision.pl adjusted /etc/passwd regex to exclude newlines

tags/release-00
gashapwn před 3 roky
rodič
revize
eca4eeb42e
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  1. +1
    -1
      perl-script/provision.pl

+ 1
- 1
perl-script/provision.pl Zobrazit soubor

@@ -26,7 +26,7 @@ if($pwuid ne "root"){

# Check /etc/passwd for the username created during
# installation
if( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:]+):[^:]+:[0-9]{4,}/){
if( ($admin_un) = `tail /etc/passwd | grep -v "nobody:"` =~ /([^:\n]+):[^:]+:[0-9]{4,}/){
printf("admin user will be set to %s\n", $admin_un);
}else{
die "create a non-root user & set user passsword before running this script."


Načítá se…
Zrušit
Uložit