On Tue, Feb 1, 2011 at 5:27 AM, M. Mohan Kumar <[email protected]> wrote: > + if (setfsuid(request->data.uid) < 0) { > + fd_info->fi_error = errno; > + return; > + } > + if (setfsgid(request->data.gid) < 0) { > + fd_info->fi_error = errno; > + goto unset_uid; > + }
fsuid is Linux-specific. Just something to keep in mind if you wanted this code to be portable (I think the rest *is* portable). Stefan
