Hi,
On 09/27/2012 08:46 AM, Luca Risolia wrote:
> On 27/09/2012 08:38, Stefan Schönleitner wrote:
>> Hi,
>
>> In my CUSE code I included <fuse.h> and tried to to get the PID and the UID.
>> However, both fields are always zero.
>
> I also get 0 in some cases or "random" numbers changing on each system call.
I think I just got it.
Instead of fuse_get_context(), you need to:
fuse_req_ctx(req)->uid, pid, etc.
Cheers,
Stefan
|