[Bug 1542096] Re: leafpad erases files over SMB
*** This bug is a duplicate of bug 708829 *** https://bugs.launchpad.net/bugs/708829 ** This bug has been marked a duplicate of bug 708829 Text truncated when I save a txt file during a sftp session over nautilus -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1542096 Title: leafpad erases files over SMB To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/leafpad/+bug/1542096/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1542096] Re: leafpad erases files over SMB
** Changed in: leafpad (Debian) Status: Unknown => New -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1542096 Title: leafpad erases files over SMB To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/leafpad/+bug/1542096/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1542096] Re: leafpad erases files over SMB
** Tags added: patch ** Bug watch added: Debian Bug tracker #890416 https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890416 ** Also affects: leafpad (Debian) via https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890416 Importance: Unknown Status: Unknown -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1542096 Title: leafpad erases files over SMB To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/leafpad/+bug/1542096/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1542096] Re: leafpad erases files over SMB
Status changed to 'Confirmed' because the bug affects multiple users. ** Changed in: leafpad (Ubuntu) Status: New => Confirmed -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1542096 Title: leafpad erases files over SMB To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/leafpad/+bug/1542096/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
[Bug 1542096] Re: leafpad erases files over SMB
I confirmed this happens on SFTP connections as well as SMB, and seems to only occur on text files less than 4096 bytes. Yes this is a dangerous bug - I was just lucky to notice before losing important notes. If you reverse lines 232 & 233 in src/file.c so that it becomes: fclose(fp); gtk_text_buffer_set_modified(buffer, FALSE); and recompile it seems to fix the bug - the files save correctly. -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1542096 Title: leafpad erases files over SMB To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/leafpad/+bug/1542096/+subscriptions -- ubuntu-bugs mailing list ubuntu-bugs@lists.ubuntu.com https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs