<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
		>
<channel>
	<title>Comments on: SFTP/SCP Atomic Copy</title>
	<atom:link href="http://www.blogalex.com/archives/226/feed" rel="self" type="application/rss+xml" />
	<link>http://www.blogalex.com/archives/226</link>
	<description>Alex Guerrieri&#039;s Blog</description>
	<lastBuildDate>Tue, 13 Dec 2011 10:41:25 +0000</lastBuildDate>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
	<item>
		<title>By: Pauls ftp storage</title>
		<link>http://www.blogalex.com/archives/226/comment-page-1#comment-192</link>
		<dc:creator>Pauls ftp storage</dc:creator>
		<pubDate>Sun, 29 Aug 2010 13:21:41 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogalex.com/?p=226#comment-192</guid>
		<description>Now we need a patch to patch the patch because this is no longer uploading properly for me on large files!</description>
		<content:encoded><![CDATA[<p>Now we need a patch to patch the patch because this is no longer uploading properly for me on large files!</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: alex</title>
		<link>http://www.blogalex.com/archives/226/comment-page-1#comment-141</link>
		<dc:creator>alex</dc:creator>
		<pubDate>Fri, 12 Feb 2010 11:39:49 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogalex.com/?p=226#comment-141</guid>
		<description>Paul, if I understand correctly with the changes you&#039;ve made now it would work fine on Linux but still fail on WinSCP? Let me know and I&#039;ll update the patch.</description>
		<content:encoded><![CDATA[<p>Paul, if I understand correctly with the changes you&#8217;ve made now it would work fine on Linux but still fail on WinSCP? Let me know and I&#8217;ll update the patch.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.blogalex.com/archives/226/comment-page-1#comment-140</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Fri, 12 Feb 2010 09:44:45 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogalex.com/?p=226#comment-140</guid>
		<description>At line 607 in sftp-server.c I added &quot;orginame = NULL&quot;
Thus the code looks like this:
607:  xfree(origname);
608:  origname = NULL;

The origname isn&#039;t set to NULL on the xfree and thus a command such as &quot;ls&quot; following a file upload would generate an error because it would enter the code block that is only supposed to be used for a file upload.

The atomic upload works fine for the default Linux sftp client but breaks clients such as WinSCP (running in SFTP mode). WinSCP seems to do some sort of operation on the file while it is being uploaded but since it only exists in a temp directory it can&#039;t find the file and spits out errors.</description>
		<content:encoded><![CDATA[<p>At line 607 in sftp-server.c I added &#8220;orginame = NULL&#8221;<br />
Thus the code looks like this:<br />
607:  xfree(origname);<br />
608:  origname = NULL;</p>
<p>The origname isn&#8217;t set to NULL on the xfree and thus a command such as &#8220;ls&#8221; following a file upload would generate an error because it would enter the code block that is only supposed to be used for a file upload.</p>
<p>The atomic upload works fine for the default Linux sftp client but breaks clients such as WinSCP (running in SFTP mode). WinSCP seems to do some sort of operation on the file while it is being uploaded but since it only exists in a temp directory it can&#8217;t find the file and spits out errors.</p>
]]></content:encoded>
	</item>
	<item>
		<title>By: Paul</title>
		<link>http://www.blogalex.com/archives/226/comment-page-1#comment-139</link>
		<dc:creator>Paul</dc:creator>
		<pubDate>Thu, 11 Feb 2010 08:48:17 +0000</pubDate>
		<guid isPermaLink="false">http://www.blogalex.com/?p=226#comment-139</guid>
		<description>This patch doesn&#039;t seem to handle file uploads properly.

With small uploads:
The temp directory is used correctly and the file is uploaded and then moved to the destination directory but one ends up with a zero size file in the temp directory and any command following the upload fails and the ssh connection is terminated.

With large uploads:
The temp directory is used correctly and the file is uploaded and then moved to the destination directory but any command following the upload fails and the ssh connection is terminated.

I suspect it&#039;s some file handling issue.</description>
		<content:encoded><![CDATA[<p>This patch doesn&#8217;t seem to handle file uploads properly.</p>
<p>With small uploads:<br />
The temp directory is used correctly and the file is uploaded and then moved to the destination directory but one ends up with a zero size file in the temp directory and any command following the upload fails and the ssh connection is terminated.</p>
<p>With large uploads:<br />
The temp directory is used correctly and the file is uploaded and then moved to the destination directory but any command following the upload fails and the ssh connection is terminated.</p>
<p>I suspect it&#8217;s some file handling issue.</p>
]]></content:encoded>
	</item>
</channel>
</rss>

