Bug 40470
Summary: | vim saves to new inode, stomps on filehandles | ||
---|---|---|---|
Product: | [Retired] Red Hat Linux | Reporter: | ratness |
Component: | vim | Assignee: | Karsten Hopp <karsten> |
Status: | CLOSED NOTABUG | QA Contact: | David Lawrence <dkl> |
Severity: | medium | Docs Contact: | |
Priority: | medium | ||
Version: | 7.3 | CC: | bcrl |
Target Milestone: | --- | ||
Target Release: | --- | ||
Hardware: | i386 | ||
OS: | Linux | ||
Whiteboard: | |||
Fixed In Version: | Doc Type: | Bug Fix | |
Doc Text: | Story Points: | --- | |
Clone Of: | Environment: | ||
Last Closed: | 2002-11-30 16:27:33 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
ratness
2001-05-14 05:56:27 UTC
The new file writing code is supposed to be a feature (eliminates some security problems from 5.7). I'll check if we can get rid of the adverse effects. What is the nfs server in this case? Invalid filehandles are typically a server problem. Hope this question was aimed at me. There is no NFS server. The problem was noticed on /var/log/messages, upon which syslog usually has an open filehandle. /var is boring stock internal IDE disk (/dev/hda5 on /var type ext2 (rw)). After munging /var/log/messages in `vim`, `lsof` indicated the filehandle was closed, and `stat` showed a new inode number. Doesn't happen in the version from rawhide This bug reappeared when you made vim6.0 part of the 7.2 errata, and it's in vim6.1 in the 7.3 release. This appears to still be the case in 8.0 as well. As Bero already mentioned, this isn't a bug but the intended behaviour to fix a security problem. You have to send a SIGHUP to syslogd when you edit /var/log/messages or one of the other logfiles. Then, is it a security problem that pico and "echo foo >> /var/log/messages" don't change inodes? This /is/ a bug, in that a simple editing of a text file produces dissimilar and unexpected results across editors. |