gvfs r2250 - in trunk: . daemon



Author: alexl
Date: Thu Feb 26 09:13:08 2009
New Revision: 2250
URL: http://svn.gnome.org/viewvc/gvfs?rev=2250&view=rev

Log:
2009-02-26  Alexander Larsson  <alexl redhat com>

	* daemon/gvfsbackendsftp.c (try_make_symlink):
	Fix order of SSH_FXP_SYMLINK arguments. It seems
	openssh is not following the docs here.



Modified:
   trunk/ChangeLog
   trunk/daemon/gvfsbackendsftp.c

Modified: trunk/daemon/gvfsbackendsftp.c
==============================================================================
--- trunk/daemon/gvfsbackendsftp.c	(original)
+++ trunk/daemon/gvfsbackendsftp.c	Thu Feb 26 09:13:08 2009
@@ -3833,8 +3833,10 @@
   
   command = new_command_stream (op_backend,
                                 SSH_FXP_SYMLINK);
-  put_string (command, filename);
+  /* Note: This is the reverse order of how this is documented in
+     draft-ietf-secsh-filexfer-02.txt, but its how openssh does it. */
   put_string (command, symlink_value);
+  put_string (command, filename);
   
   queue_command_stream_and_free (op_backend, command, make_symlink_reply, G_VFS_JOB (job), NULL);
 



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