diff options
author | Stefan Metzmacher <metze@samba.org> | 2020-11-19 16:19:53 +0000 |
---|---|---|
committer | Karolin Seeger <kseeger@samba.org> | 2021-03-03 08:11:09 +0000 |
commit | 57994ca68f21c831f0e3e292cc101fd78997bdd3 (patch) | |
tree | a3e161f07addd2e7088041d96810285894ae4984 | |
parent | aa9a1644f4139d753d622d4552d7c88580a53073 (diff) | |
download | samba-57994ca68f21c831f0e3e292cc101fd78997bdd3.tar.gz |
selftest: allow a prefix under /m/username/
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)
-rwxr-xr-x | selftest/selftest.pl | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/selftest/selftest.pl b/selftest/selftest.pl index d14df92a11c..cda4c0e2f4b 100755 --- a/selftest/selftest.pl +++ b/selftest/selftest.pl @@ -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 ""; |