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.


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!
fuse-devel mailing list
[hidden email]