Re: extended attributes

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

 



On Tue, 2006-05-09 at 07:21, James Wilkinson wrote:
> Russell Strong wrote:
> > I tried editing a file where I didn't have write permission on the directory, 
> > only have write permission on the file.  That worked as I expected, the EAs 
> > were preserved and the inode did not change.  Anyone know why vim behaves 
> > differently when it has write permissions for the directory?  Is this a vim 
> > "bug" ( not behaving the way ?most? users expect ) or is there a reason?
> 
> Oh yes, there certainly is a reason....
> 
> As I understand it, the normal way that vim saves a file is to create a
> new file, give it the appropriate ownership and permissions (and these
> days SELinux attributes), write everything into that file, and rename it
> to the desired filename.

It should copy over the original in all cases where it can't
duplicate it exactly.  For example the file is owned by
someone else but you have write permission - or there are
multiple links to the same file.  If it doesn't do that for
EA's that it can't reproduce it is just another place that
they aren't well integrated into the distribution.

-- 
  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