[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [coldsync-hackers] Getting users id of the user running sync?



On Tuesday 10 June 2003 19:00, Alex Tronin wrote:
> Coldsync daemon has palm_username value - add it to set of headers in
> conduit.c
> Like this:
>
>         ++last_header;
>         headers[last_header].name = "Palm_hot_sync_name";
>         headers[last_header].value = (char *)palm_username(palm);

The PDA-Username header already exists (at least in the CVS version).

run_mode_Daemon in runmode.c does a setuid(2), so the effective userid is 
set appropriately for any conduit. This means that $EUID (geteuid(2)) 
should provide the appropriate Unix-side identity?

c.

-- 
This message was sent through the coldsync-hackers mailing list.  To remove
yourself from this mailing list, send a message to majordomo@thedotin.net
with the words "unsubscribe coldsync-hackers" in the message body.  For more
information on Coldsync, send mail to coldsync-hackers-owner@thedotin.net.