Re: extended attributes

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, 2006-05-04 at 06:25, Aaron Konstam wrote:
> > 
> > I've found that when I edit a file with vi or gedit I lose all of the 
> > user extended attributes associated with that file.  A stat reveals that 
> > the inode number has changed.  Is this the reason why I'm losing the 
> > extended attributes?  Is vi and gedit creating a new file?  Is it easy 
> > to change this behaviour?
> > 
> I don't know for sure but that makes sense to me. When vi is used, at
> least, a temporary copy of the file is created to be edited. It would
> not surprise me that when you save the file a new file with a new inode
> is created.

If it did that, you would not be able to edit files where you
have write permission on the file but not the directory
containing them and hardlinked files would no longer be
linked.  It should be copying the temp file contents back
over the original at least in cases where it can't duplicate
all the attributes and links.

-- 
   Les Mikesell
    lesmikesell@xxxxxxxxx


-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux