[X2go-Commits] x2gobroker.git - master (branch) updated: 0.0.0.5-32-gcacfe49

X2Go dev team git-admin at x2go.org
Mon Mar 4 10:58:22 CET 2013


The branch, master has been updated
       via  cacfe491f405d6db68079b6166d729f4c502d0dd (commit)
      from  8b21bebbe426c5fc64b692933072e99724f479b2 (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
commit cacfe491f405d6db68079b6166d729f4c502d0dd
Author: Mike Gabriel <mike.gabriel at das-netzwerkteam.de>
Date:   Mon Mar 4 10:58:16 2013 +0100

    use sed to delete authorized keys from file

-----------------------------------------------------------------------

Summary of changes:
 lib/x2gobroker-agent.pl |    3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

The diff of changes is:
diff --git a/lib/x2gobroker-agent.pl b/lib/x2gobroker-agent.pl
index f1e3bad..9b20e40 100755
--- a/lib/x2gobroker-agent.pl
+++ b/lib/x2gobroker-agent.pl
@@ -94,8 +94,7 @@ sub DelAuthKey
 		my $authorized_keys = `su - $uid -c \"cat $authkeyfile\"`;
 		if ( ! ( $authorized_keys =~ m/$pubkey/ ) )
 		{
-			system("su - $uid -c \"cat $authkeyfile.tmp | grep -v '$pubkey' > $authkeyfile.tmp\"");
-			system("su - $uid -c \"mv $authkeyfile.tmp $authkeyfile\"");
+			system("su - $uid -c \"sed -e s/'$pubkey'// -i $authkeyfile\"");
 		}
 	}
 }


hooks/post-receive
-- 
x2gobroker.git (HTTP(S) Session broker for X2Go)

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "x2gobroker.git" (HTTP(S) Session broker for X2Go).




More information about the x2go-commits mailing list