From 4f1c980934a0efbe0104a8d7bdd5866c2cc504e8 Mon Sep 17 00:00:00 2001 From: Florian Weimer Date: Thu, 15 May 2008 20:54:59 +0200 Subject: [PATCH] Ignore commented-out lines in authorized keys files Based on a patch from Rainer Nagel. --- dowkd.in | 1 + 1 file changed, 1 insertion(+) diff --git a/dowkd.in b/dowkd.in index 1dceff7..d7f7056 100644 --- a/dowkd.in +++ b/dowkd.in @@ -158,6 +158,7 @@ sub from_ssh_auth_file ($) { my $tmp = new File::Temp; while (my $line = <$auth>) { chomp $line; + next if $line =~ m/^\s*(#|$)/; my $lineno = $.; clear_tmp $tmp; print $tmp "$line\n" or die "print: $!"; -- 2.11.4.GIT