Package: fakeroot
Version: 1.30.1-1.1

The default behavior for fakeroot is to show unknown files owned by root. When 
setting extended attributes on a file the owner stored by fakeroot is the real 
owner. The behavior can be observed when running the following commands inside 
fakeroot:

touch testfile
ls -l # shows owner as root
attr -s test -V x testfile
ls -l # shows real owner

I've looked at the code and there is some logic to set the owner to root if the 
uid/gid from the buffer is -1. I don't see where this value is ever sent by the 
client. Instead, I propose to always set the owner to root, just like in 
process_chmod. See attached patch.

Attachment: setxattr_unknown_is_root.patch
Description: setxattr_unknown_is_root.patch

Reply via email to