obexapp access to pwd.db
Maksim Yevmenkin
maksim.yevmenkin at gmail.com
Tue Dec 8 15:48:29 PST 2009
Iain,
> one more thing with obexapp - I have it running in server mode here,
> command line:
>
> /usr/pkg/bin/obexapp -s -S -C 10 -r /home/plunky/obex -u plunky
>
> which works well - I can copy files to and from my obex directory as I
> like locally and remotely. A thing I recently noticed is that when my
> phone connects, I get
>
> obexapp[134]: /etc/pwd.db: No such file or directory
>
> in the system log. Naturally, this is because obexapp is running in a
> chroot and there is no password database inside.. I'm not sure if this is
> new behaviour but I don't recall seeing it previously.
>
> I guess this relates to getpwnam or getpwuid in server.c, is it a problem?
ahh... i see what the problem is.
obexapp_server_request_get_folder_object() wants to call
getpwuid()/getgrgid() to put user/group name into xml, but, obviously,
it can not. i guess this is the case where "less is more" :) i will
fix this.
> PS there is also a fork()/daemon() cascade in transport.c I think you
> removed the unnecessary fork() from main previously?
yeah, this was me being too lazy :) i just wanted to make sure child
gets completely detached no matter how parent is running :) i will fix
it too
> PPS sorry no time to investigate this stuff here just now but I thought
> I'd let you know :)
thanks!
max
More information about the freebsd-bluetooth
mailing list