Re: lchown() vs. chown().

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

Re: lchown() vs. chown().

Miklos Szeredi
> For the FUSE library chown operation, if I was to transform this
> directly into an underlying file-system, should I use chown() or
> lchown() (which, in the case of symbolic link, will change the ownership
> of the link and not the file linked to)?

Always use the l... variant.  The kernel will know whether to follow
or not to follow links, and if it needs following it will do that.

Miklos


-------------------------------------------------------
This SF.Net email is sponsored by Oracle Space Sweepstakes
Want to be the first software developer in space?
Enter now for the Oracle Space Sweepstakes!
http://ads.osdn.com/?ad_id=7412&alloc_id=16344&op=click
_______________________________________________
fuse-devel mailing list
[hidden email]
https://lists.sourceforge.net/lists/listinfo/fuse-devel