selftest: allow a prefix under /m/username/
authorStefan Metzmacher <metze@samba.org>
Thu, 19 Nov 2020 16:19:53 +0000 (16:19 +0000)
committerKarolin Seeger <kseeger@samba.org>
Wed, 3 Mar 2021 08:11:09 +0000 (08:11 +0000)
We only want to match/replace only a '.' pathname component
not any single character pathname compoment!

BUG: https://bugzilla.samba.org/show_bug.cgi?id=14628

Signed-off-by: Stefan Metzmacher <metze@samba.org>
Reviewed-by: Andreas Schneider <asn@samba.org>
(cherry picked from commit 02301222386f2f08631d48d6e88c03cd1439325d)
(cherry picked from commit f480161b754aade6c1af2d05f3ce742466b28026)

selftest/selftest.pl

index d14df92a11c8dc184158489474ee6de411a45a12..cda4c0e2f4bfbc6138071fb8854937fcb1a3ce26 100755 (executable)
@@ -280,7 +280,7 @@ my $bindir_abs = abs_path($bindir);
 my $torture_maxtime = ($ENV{TORTURE_MAXTIME} or 1200);
 
 $prefix =~ s+//+/+;
-$prefix =~ s+/./+/+;
+$prefix =~ s+/\./+/+;
 $prefix =~ s+/$++;
 
 die("using an empty prefix isn't allowed") unless $prefix ne "";