Bluelich / vim

Automatically exported from code.google.com/p/vim
0 stars 0 forks source link

Extended attributes are lost in backupcopy=no mode #306

Open GoogleCodeExporter opened 9 years ago

GoogleCodeExporter commented 9 years ago
To reproduce the problem

0. Create a file:  
    $ echo "foo" > foo.txt

1. Put an extended attr in the file, and confirm the xattr is ok:
    $ setfattr -n user.at1 -v v1 foo.txt
    $ getfattr foo.txt

2. Edit the file with vim, save it

3. Check the xattr
    $ getfattr foo.txt

You'll see the xattr is not there anymore. It should be preserved, the same way 
other attributes of the file are preserved (like permissions).

Of course, setting backupcopy=yes will work, but this implies the overhead of 
copying the file, which is not nice (that's why the backupcopy default is no 
<wink>).

What version of the product are you using? On what operating system?

Please provide any additional information below.

Original issue reported on code.google.com by facundob...@gmail.com on 29 Dec 2014 at 11:59

GoogleCodeExporter commented 9 years ago
I'm using vim 7.4.52 on Ubuntu Trusty.

Original comment by facundob...@gmail.com on 29 Dec 2014 at 12:00