Bug 657875
Summary: | nano thinks file has been modified under it when saving | ||
---|---|---|---|
Product: | [Fedora] Fedora | Reporter: | Charles R. Anderson <cra> |
Component: | nano | Assignee: | David Woodhouse <dwmw2> |
Status: | CLOSED CURRENTRELEASE | QA Contact: | Fedora Extras Quality Assurance <extras-qa> |
Severity: | medium | Docs Contact: | |
Priority: | low | ||
Version: | rawhide | CC: | dwmw2, jaswinder, kdudka |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | Unspecified | ||
OS: | Unspecified | ||
Whiteboard: | |||
Fixed In Version: | nano-2.2.6-2.fc15 | Doc Type: | Bug Fix |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2011-09-04 18:06:08 UTC | Type: | --- |
Regression: | --- | Mount Type: | --- |
Documentation: | --- | CRM: | |
Verified Versions: | Category: | --- | |
oVirt Team: | --- | RHEL 7.3 requirements from Atomic Host: | |
Cloudforms Team: | --- | Target Upstream Version: | |
Embargoed: |
Description
Charles R. Anderson
2010-11-28 14:53:23 UTC
Please provide the output of stat(1) for the edited file: 1) before editing the file 2) before attempting to save the changes 3) after the dialog appears Before editing file in nano: [install@l ~]$ stat test File: `test' Size: 451 Blocks: 8 IO Block: 4096 regular file Device: fd02h/64770d Inode: 262165 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 500/ install) Gid: ( 500/ install) Context: unconfined_u:object_r:user_home_t:s0 Access: 2010-11-28 13:46:38.140528974 -0500 Modify: 2010-11-28 13:48:07.422529000 -0500 Change: 2010-11-28 13:48:07.422529000 -0500 Birth: - After opening file in nano but not making any changes: [install@l ~]$ stat test File: `test' Size: 451 Blocks: 8 IO Block: 4096 regular file Device: fd02h/64770d Inode: 262165 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 500/ install) Gid: ( 500/ install) Context: unconfined_u:object_r:user_home_t:s0 Access: 2010-11-28 13:48:58.081529013 -0500 Modify: 2010-11-28 13:48:07.422529000 -0500 Change: 2010-11-28 13:48:07.422529000 -0500 Birth: - After not making any changes to the contents, but saving over the file anyway with Ctrl-o (no warning dialog appears for this save). Here is the stat after the save: [install@l ~]$ stat test File: `test' Size: 451 Blocks: 8 IO Block: 4096 regular file Device: fd02h/64770d Inode: 262165 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 500/ install) Gid: ( 500/ install) Context: unconfined_u:object_r:user_home_t:s0 Access: 2010-11-28 13:48:58.081529013 -0500 Modify: 2010-11-28 13:49:11.858529298 -0500 Change: 2010-11-28 13:49:11.858529298 -0500 Birth: - After still not making any changes to the contents, but attempting to save over the file with Ctrl-o for a second time, the warning dialog appears and stat shows this before actually saving the file a second time: [install@l ~]$ stat test File: `test' Size: 451 Blocks: 8 IO Block: 4096 regular file Device: fd02h/64770d Inode: 262165 Links: 1 Access: (0664/-rw-rw-r--) Uid: ( 500/ install) Gid: ( 500/ install) Context: unconfined_u:object_r:user_home_t:s0 Access: 2010-11-28 13:48:58.081529013 -0500 Modify: 2010-11-28 13:49:11.858529298 -0500 Change: 2010-11-28 13:49:11.858529298 -0500 Birth: - Thanks, confirmed, will be fixed shortly. Please try nano-2.2.6-2.fc15: http://koji.fedoraproject.org/koji/buildinfo?buildID=206774 Updated patches sent upstream: http://article.gmane.org/gmane.editors.nano.devel/2887 http://article.gmane.org/gmane.editors.nano.devel/2888 Haven't seen this problem anymore, must be fixed :-) Great. Thanks for the feedback! |