Bug#845397: Proposed patch

2016-11-22 Thread Nicolas Anonyme
In attachment a tentative of patch (but as it's already 2 am, I don't guarantee anything). --- leafpad-0.8.18.1_orig/src/file.c 2010-12-23 14:54:16.0 +0100 +++ leafpad-0.8.18.1/src/file.c 2016-11-23 00:45:53.0 +0100 @@ -180,6 +180,7 @@ gint file_save_real(GtkWidget *view, FileInfo

Bug#845397: Leafpad: mishandling of error cases in the saving function can lead to silent data loss

2016-11-22 Thread Nicolas Anonyme
Package: leafpad Version: 0.8.18.1-5 X-Debbugs-CC: bladeboy200...@gmail.com Severity: critical Some mishandling of error return code in the saving function of leafpad can lead to data loss. When a file ($FILE) is saved in leafpad, it calls the functions file_save_real(file.c:180): - The

Bug#680418: examples

2016-11-22 Thread Nicolas Anonyme
I rewrote a custom demo soft for this (see attachments). # When trying to write data into a file on local filesystem # All data are writen onto the disk ./write_into /tmp/file.txt 3 [fnFileSave] Will try to write 3 byte(s) into [/tmp/file.txt] [fnFileSave] Opening first stream pointer on file

Bug#680418: Additionnal informations

2016-11-22 Thread Nicolas Anonyme
Hello, I once again lost a (precious) file to this bug (using leafpad with gvfs over sftp) . ( gvfs 1.28.2 , leafpad 0.8.17 , debian 8 or ubuntu xenial ) Leafpad is just the trigger here. as the behavior of gvfs+sftp differs from the local ext4 file system, it could cause some data loss in

Bug#680418: gvfs-fuse: Wrongly sucessful posix fwrite call on a gvfs sftp mount can lead to data loss

2012-07-16 Thread Nicolas Anonyme
Hi Andreas! Thank you for looking into this issue. Reading your comments made me realise that I shouldn't have rushed my first bug report and shouldnt have made unsupported assumptions making me look like a fool. Now that you say it, it was obvious that it was impossible for this strace to show

Bug#680418: gvfs-fuse: Wrongly sucessful posix fwrite call on a gvfs sftp mount can lead to data loss

2012-07-05 Thread Nicolas Anonyme
Package: gvfs-fuse Version: 1.12.3-1+b1 Severity: critical Tags: upstream Justification: causes serious data loss Dear Maintainer, * What led up to the situation? After some of my files got truncated at 4096 bytes when saved in leafpad over agvfs sftp mount, I did some debug, and found that