Starter for 10: Changing owner/group of a symlink

Both the class and instance File.chown methods seem to follow the link
rather than affecting the link itself.

Is assume this jut calls chown(2). But I don’t see an lchown equivalent
(although there is an lstat)

What have I missed?

Andrew Walrond

Hi,

···

At Wed, 7 May 2003 23:31:49 +0900, Andrew Walrond wrote:

Both the class and instance File.chown methods seem to follow the link
rather than affecting the link itself.

Is assume this jut calls chown(2). But I don’t see an lchown
equivalent (although there is an lstat)

In 1.8, File#lchown is available only if your platform supports
lchown(2). Otherwise it raises NotImplementedError.


Nobu Nakada

Ah; I’m using 1.6.8 where is obviously isn’t implemented.

Thanks for the info

···

nobu.nokada@softhome.net wrote:

Hi,

At Wed, 7 May 2003 23:31:49 +0900, > Andrew Walrond wrote:

Both the class and instance File.chown methods seem to follow the link
rather than affecting the link itself.

Is assume this jut calls chown(2). But I don’t see an lchown
equivalent (although there is an lstat)

In 1.8, File#lchown is available only if your platform supports
lchown(2). Otherwise it raises NotImplementedError.