Date: Tue, 8 Dec 2009 15:48:27 -0800 From: Maksim Yevmenkin <maksim.yevmenkin@gmail.com> To: Iain Hibbert <plunky@rya-online.net> Cc: freebsd-bluetooth@freebsd.org Subject: Re: obexapp access to pwd.db Message-ID: <bb4a86c70912081548p5507b2can54a9642384b8185f@mail.gmail.com> In-Reply-To: <1260285672.503038.542.nullmailer@galant.ukfsn.org> References: <20091201125054.44a00147@zelz27> <1259694948.961003.27487.nullmailer@galant.ukfsn.org> <1259695873.086896.28523.nullmailer@galant.ukfsn.org> <bb4a86c70912011525n56cf9187wfecd230daa3c9d1e@mail.gmail.com> <1260285672.503038.542.nullmailer@galant.ukfsn.org>
next in thread | previous in thread | raw e-mail | index | archive | help
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
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bb4a86c70912081548p5507b2can54a9642384b8185f>
