Description of problem: When the "set backup" option is set in .nanorc and a file is edited, when saving the file an error message appears "Failed to write backup file, continue saving? (say N if unsure)". When "y" response is given, the file is saved. Listing the directory shows that the backup file (same name as "file" with tilde appended), was indeed created, despite what the error message says. Version-Release number of selected component (if applicable): Name : nano Arch : x86_64 Version : 2.3.4 Release : 3.fc21 How reproducible: always Steps to Reproduce: 1. edit .nanorc file to include "set backup" 2. edit an existing file 3. make some changes 4. save the file Actual results: spurious error message and prompt appear Expected results: file is saved and properly backed up without spurious message and prompt Additional info:
Thank you for reporting the bug! It is caused by calling futimens() on a descriptor that has been already closed by closing the owning FILE* handle in copy_file(). I will write a fix for this.
fixed in nano-2.3.6-3.fc22
nano-2.3.4-4.fc21 has been submitted as an update for Fedora 21. https://admin.fedoraproject.org/updates/nano-2.3.4-4.fc21
Package nano-2.3.4-4.fc21: * should fix your issue, * was pushed to the Fedora 21 testing repository, * should be available at your local mirror within two days. Update it with: # su -c 'yum update --enablerepo=updates-testing nano-2.3.4-4.fc21' as soon as you are able to. Please go to the following url: https://admin.fedoraproject.org/updates/FEDORA-2015-0225/nano-2.3.4-4.fc21 then log in and leave karma (feedback).
nano-2.3.4-4.fc21 has been pushed to the Fedora 21 stable repository. If problems still persist, please make note of it in this bug report.