[bug #13432] ownership is not preserved when copying symlinks
- From: "Andrew V. Samoilov" <savannah-bounces gnu org>
- To: Pavel Tsekov <ptsekov gmx net>, "Andrew V. Samoilov" <sav bcs zp ua>, mc-devel gnome org
- Cc:
- Subject: [bug #13432] ownership is not preserved when copying symlinks
- Date: Sat, 16 Jul 2005 09:29:22 +0000
Follow-up Comment #2, bug #13432 (project mc):
man 2 chown
In versions of Linux prior to 2.1.81 (and distinct from
2.1.46), chown did not follow symbolic links. Since Linux
2.1.81, chown does follow symbolic links, and there is a
new system call lchown that does not follow symbolic
links. Since Linux 2.1.86, this new call (that has the
same semantics as the old chown) has got the same syscall
number, and chown got the newly introduced number.
So we need to check one more function in configure and use lchown()
insteod of chown() in the vfs/local.c if HAVE_LCHONW.
_______________________________________________________
Reply to this item at:
<http://savannah.gnu.org/bugs/?func=detailitem&item_id=13432>
_______________________________________________
Message sent via/by Savannah
http://savannah.gnu.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]