config

OpenBSD system configuration
git clone git://jacobedwards.org/config
Log | Files | Refs | README

commit 345eae4260a34b6e3be54a3075ce1c5b4c4fe853
parent fbd469d9810ebf7c33102b501dab1f37ee2dad7a
Author: Jacob R. Edwards <n/a>
Date:   Sun,  4 Dec 2022 16:59:33 -0600

Fix path processing in unroot

The dot ('.') wasn't getting escaped in the regex.

Diffstat:
Mlocal/bin/bin/unroot | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/local/bin/bin/unroot b/local/bin/bin/unroot @@ -20,7 +20,7 @@ BEGIN { } { - while (gsub("(/\.?/)+", "/", $0)) + while (gsub("/\\.?/+", "/", $0)) ; if (index($0, wd) == 1) { rel = substr($0, length(wd) + 2)