Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment

2012-08-30 Thread Stefan Priebe
] On Behalf Of Dietmar Maurer Sent: Donnerstag, 30. August 2012 07:05 To: Stefan Priebe; pve-devel@pve.proxmox.com Subject: Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment +my @lines = split(/\n/, $data); +foreach my $line

Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment

2012-08-30 Thread Stefan Priebe
Am 30.08.2012 10:57, schrieb Dietmar Maurer: Do we also like to check for keys without comments? if ($line =~ m/^ssh-rsa\s+(\S+)/) { ssh allows that? If so, we should also allow that. man page says it is optional comment. Stefan ___ pve-devel

Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment

2012-08-29 Thread Dietmar Maurer
Subject: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment Signed-off-by: Stefan Priebe s.pri...@profihost.ag --- data/PVE/Cluster.pm | 26 -- 1 file changed, 12 insertions(+), 14 deletions(-) diff --git

Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment

2012-08-29 Thread Dietmar Maurer
: Donnerstag, 30. August 2012 07:05 To: Stefan Priebe; pve-devel@pve.proxmox.com Subject: Re: [pve-devel] [PATCH] - preserve authorized_key key order - identify double keys by key and not by comment +my @lines = split(/\n/, $data); +foreach my $line (@lines) { +if ($line =~ m/^ssh