From 6193a4afe7d80d39e45e8516cddfd2cae73b2151 Mon Sep 17 00:00:00 2001 From: cphillip Date: Thu, 2 May 2002 15:37:56 +0000 Subject: [PATCH] o Update regex in fixpaths() to only pick out an entire line that fits our profile. --- setup/setup-openssh.pl | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/setup/setup-openssh.pl b/setup/setup-openssh.pl index f676176..8331aa8 100644 --- a/setup/setup-openssh.pl +++ b/setup/setup-openssh.pl @@ -214,7 +214,11 @@ sub fixpaths while () { - if ( /Subsystem\s+sftp\s+\S+/ ) + # + # sorry for the whacky regex, but i need to verify a whole line + # + + if ( /^\s*Subsystem\s+sftp\s+\S+\s*$/ ) { $_ = "Subsystem\tsftp\t$gpath/libexec/sftp-server\n"; $_ =~ s:/+:/:g; -- 2.45.2