[X2Go-Commits] [x2gobroker] 03/07: x2gobroker-agent: literally test for the pubkey, ignore regexp-like expressions in pubkey hashes
git-admin at x2go.org
git-admin at x2go.org
Fri Mar 28 23:58:42 CET 2014
This is an automated email from the git hooks/post-receive script.
x2go pushed a commit to branch master
in repository x2gobroker.
commit da33b36a3ed9f133292da68bdbdf5514cf78866b
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date: Mon Mar 24 12:59:10 2014 +0100
x2gobroker-agent: literally test for the pubkey, ignore regexp-like expressions in pubkey hashes
---
lib/x2gobroker-agent.pl | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/lib/x2gobroker-agent.pl b/lib/x2gobroker-agent.pl
index c1fb216..e0c52a4 100755
--- a/lib/x2gobroker-agent.pl
+++ b/lib/x2gobroker-agent.pl
@@ -83,7 +83,7 @@ sub AddAuthKey
system ("sudo", "-u", "$uid", "--", "mkdir", "-p", "$authkeydir");
system ("sudo", "-u", "$uid", "--", "touch", "$authkeyfile");
my $authorized_keys = `sudo -u $uid -- cat "$authkeyfile"`;
- if ( ! ( $authorized_keys =~ m/^$pubkey$/ ) )
+ if ( ! ( $authorized_keys =~ m/\Q$pubkey\E$/ ) )
{
open my $saveout, ">&STDOUT";
open STDOUT, '>', "/dev/null";
--
Alioth's /srv/git/_hooks_/post-receive-email on /srv/git/code.x2go.org/x2gobroker.git
More information about the x2go-commits
mailing list