seahorse r2953 - in trunk: . ssh



Author: nnielsen
Date: Fri Mar 20 22:17:17 2009
New Revision: 2953
URL: http://svn.gnome.org/viewvc/seahorse?rev=2953&view=rev

Log:
When a port wasn't specified the umask for a new authorized_keys wasn't taking effect.

Research by Andreas Moog. Fixes bug #574899

Modified:
   trunk/ChangeLog
   trunk/ssh/seahorse-ssh-operation.c

Modified: trunk/ssh/seahorse-ssh-operation.c
==============================================================================
--- trunk/ssh/seahorse-ssh-operation.c	(original)
+++ trunk/ssh/seahorse-ssh-operation.c	Fri Mar 20 22:17:17 2009
@@ -808,7 +808,7 @@
      * and then appends all input data onto the end of .ssh/authorized_keys
      */
     /* TODO: Important, we should handle the host checking properly */
-    cmd = g_strdup_printf (SSH_PATH " '%s %s' %s '%s' -o StrictHostKeyChecking=no "
+    cmd = g_strdup_printf (SSH_PATH " '%s %s' %s %s -o StrictHostKeyChecking=no "
                                     "\"umask 077; test -d .ssh || mkdir .ssh ; cat >> .ssh/authorized_keys\"", 
                            username, hostname, 
                            port ? "-p" : "", 
@@ -817,7 +817,7 @@
 	data = g_memory_output_stream_get_data (output);
 	length = strlen (data);
 	g_object_unref (output);
-    
+
 	op = seahorse_ssh_operation_new (ssrc, cmd, data, length, NULL);
     
 	g_free (cmd);



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]