[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: [rdiff-backup-users] No lchown on 10.3 for rdiff-backup 1.0.0
From: |
Scott Lamb |
Subject: |
Re: [rdiff-backup-users] No lchown on 10.3 for rdiff-backup 1.0.0 |
Date: |
Sat, 3 Sep 2005 16:13:48 -0700 |
There is a lchown manual page on 10.3, but running nm on
/usr/lib/lib*dylib and greping all headers in /usr/include shows no
lchown symbol.
The next rdiff-backup release may want to special case this.
Does 10.4 have lchown?
Yes.
address@hidden ~]$ uname -a
Darwin spiff.local 8.2.0 Darwin Kernel Version 8.2.0: Fri Jun 24
17:46:54 PDT 2005; root:xnu-792.2.4.obj~3/RELEASE_PPC Power Macintosh
powerpc
(Darwin 8.2.0 == OS X 10.4.2)
address@hidden /usr/include]$ find_grep '*.h' lchown
./sys/syscall.h:#define SYS_lchown 364
./unistd.h:int lchown(const char *, uid_t, gid_t) __DARWIN_ALIAS
(lchown);
address@hidden /usr/lib]$ nm lib*.dylib | fgrep lchown
libSystem.B.dylib(lchown.So):
900c3398 T _lchown
900c3364 T _lchown$UNIX2003
What's 10.3, does that mean Mac OS X?
Yes.
How do people change the ownership of
symbolic links on your system without lchown?
I don't know.
I hoped for a second that it existed in the kernel and just not in a
standard userspace way. Then you could get to it through SYSCALL
(which Perl pushes through; Python probably does, too). But no go. I
don't see it in the kernel source for 10.3.2. I think it'd be here:
http://cvs.opendarwin.org/index.cgi/src/xnu/bsd/vfs/vfs_syscalls.c
--
Scott Lamb <http://www.slamb.org/>