michaelogrant / macfusion

Automatically exported from code.google.com/p/macfusion
Other
1 stars 1 forks source link

overwriting a file with shorter data does not truncate it #167

Open GoogleCodeExporter opened 8 years ago

GoogleCodeExporter commented 8 years ago
1. write a 70 bytes files on a web server mounted via FTP
2. remove 10 bytes
3. check the file via the server : it is still 70 bytes long. Data is 
corrupted: the last 10 bytes are 
duplicated, as if the file length had not been set to the new length.

Note: this does not appear to happen with a classic FTP client.

MacFusion 1.1 (it did the same under 1.1b2)

FTP Server is 220 ProFTPD 1.3.0a Server (ProFTPD)

Original issue reported on code.google.com by philippe...@gmail.com on 29 May 2007 at 9:52

GoogleCodeExporter commented 8 years ago
Two comments:

Removing the file then sending a fresh copy "solves" the problem for that 
particular file.

I don't own the FTP server so I can't provide access. The server itself 
probably has a bug (too?)

Original comment by philippe...@gmail.com on 29 May 2007 at 9:56

GoogleCodeExporter commented 8 years ago
What do you do exactly to remove the 10 bytes? Did you write a program to do 
that?
Are you using a text editor?

Original comment by robsonbr...@gmail.com on 31 May 2007 at 8:30

GoogleCodeExporter commented 8 years ago
See also 
<http://groups.google.com/group/macfuse-devel/browse_frm/thread/a017b31ef275494e
/>

Original comment by grahampe...@gmail.com on 1 Jun 2007 at 3:38