selftest: fix default option name
[metze/samba/wip.git] / selftest / selftest.pl
index 7d40db5371a729aa3dedbbc716c178cac54150f6..cf25fa149a1a6e0fa0ac2a71fbd5599fc9d74410 100755 (executable)
@@ -752,7 +752,8 @@ sub setup_env($)
        my $option = $name;
 
        $envname =~ s/:.*//;
-       $option =~ s/^[^:]*://;
+       $option =~ s/^[^:]*//;
+       $option =~ s/^://;
 
        $option = "client" if $option eq "";