Drake Wilson <[EMAIL PROTECTED]> writes:

> I'm basically familiar with lchmod, but is it really available on this
> platform?  It doesn't seem to be.  With Debian GNU/Linux unstable on
> AMD64 with Linux 2.6.24.2 and GCC 4.3.1 20080523 (prerelease) (Debian
> 4.3.0-5), I get the following results (newlines added for clarity):
>
>   $ ln -s /dev/null foo
>   $ ls -l foo
>   lrwxrwxrwx 1 drake drake 9 2008-06-21 12:27 foo -> /dev/null
>
>   $ man 2 lchmod
>   No manual entry for lchmod in section 2
>   $ man 3 lchmod
>   No manual entry for lchmod in section 3
>
>   $ cat >lchmod.c
>   main() { lchmod("foo", 0700); }
>   $ gcc -o lchmod lchmod.c
>   /tmp/cc478IUh.o: In function `main':
>   lchmod.c:(.text+0x18): warning: warning: lchmod is not implemented and will 
> always fail

Ah, indeed -- I was confusing it with lchown.  Looks like Linux doesn't
implement lchmod after all.

-- 
Russ Allbery ([EMAIL PROTECTED])               <http://www.eyrie.org/~eagle/>


-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to