Shouldn't that second ls be for ./foo2? I do see the tcat change. It seems normal behavior to me, that ownership goes to whoever is doing the copy. For instance, if you copy some root files to your homedir, ownership will given to the owner of the homedir, unless the copy is done by root. You would be violating the principles of su and sudo otherwise, i.e. escalation of priviledges could occur. But I may be wrong. ;-)
In reply to Re: Preserving Ownership with File::Copy::Recursive
by zentara
in thread Preserving Ownership with File::Copy::Recursive
by xorl
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |