From owner-freebsd-bluetooth@FreeBSD.ORG Mon Dec 7 18:40:09 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 9F60E1065672 for ; Mon, 7 Dec 2009 18:40:09 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp6.freeserve.com (smtp5.freeserve.com [193.252.22.151]) by mx1.freebsd.org (Postfix) with ESMTP id 56B968FC0A for ; Mon, 7 Dec 2009 18:40:07 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3529.me.freeserve.com (SMTP Server) with ESMTP id 0249D1C00088; Mon, 7 Dec 2009 19:40:06 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3529.me.freeserve.com (SMTP Server) with ESMTP id D854D1C00089; Mon, 7 Dec 2009 19:40:05 +0100 (CET) Received: from rya-online.net (unknown [89.194.129.131]) by mwinf3529.me.freeserve.com (SMTP Server) with SMTP id 28B641C00088; Mon, 7 Dec 2009 19:40:05 +0100 (CET) X-ME-UUID: 20091207184005166.28B641C00088@mwinf3529.me.freeserve.com Received: (nullmailer pid 17243 invoked by uid 1000); Mon, 07 Dec 2009 18:39:48 -0000 Date: Mon, 7 Dec 2009 18:39:48 +0000 (GMT) To: Maksim Yevmenkin In-Reply-To: References: <20091201125054.44a00147@zelz27> <1259694948.961003.27487.nullmailer@galant.ukfsn.org> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1260211188.932006.18183.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: freebsd-bluetooth@freebsd.org Subject: Re: patch to make obexapp work with BSD iconv(3) X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 07 Dec 2009 18:40:09 -0000 On Tue, 1 Dec 2009, Maksim Yevmenkin wrote: > ok, so, combined patch would look something like the attached. > > could you please give it a try and see if it still works? seems fine to me iain From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 8 16:40:11 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 692DE106566B for ; Tue, 8 Dec 2009 16:40:11 +0000 (UTC) (envelope-from plunky@rya-online.net) Received: from smtp6.freeserve.com (smtp5.freeserve.com [193.252.22.151]) by mx1.freebsd.org (Postfix) with ESMTP id 2A2DD8FC17 for ; Tue, 8 Dec 2009 16:40:10 +0000 (UTC) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3502.me.freeserve.com (SMTP Server) with ESMTP id 3065F700014C; Tue, 8 Dec 2009 17:40:09 +0100 (CET) Received: from me-wanadoo.net (localhost [127.0.0.1]) by mwinf3502.me.freeserve.com (SMTP Server) with ESMTP id 23DD97000142; Tue, 8 Dec 2009 17:40:09 +0100 (CET) Received: from rya-online.net (unknown [89.194.134.140]) by mwinf3502.me.freeserve.com (SMTP Server) with SMTP id A33BE700014C; Tue, 8 Dec 2009 17:40:07 +0100 (CET) X-ME-UUID: 20091208164007668.A33BE700014C@mwinf3502.me.freeserve.com Received: (nullmailer pid 255 invoked by uid 1000); Tue, 08 Dec 2009 15:21:12 -0000 Date: Tue, 8 Dec 2009 15:21:12 +0000 (GMT) To: Maksim Yevmenkin In-Reply-To: References: <20091201125054.44a00147@zelz27> <1259694948.961003.27487.nullmailer@galant.ukfsn.org> <1259695873.086896.28523.nullmailer@galant.ukfsn.org> User-Agent: Alpine 2.00 (NEB 1167 2008-08-23) MIME-Version: 1.0 Content-Type: TEXT/PLAIN; charset=US-ASCII Message-Id: <1260285672.503038.542.nullmailer@galant.ukfsn.org> From: Iain Hibbert Cc: freebsd-bluetooth@freebsd.org Subject: obexapp access to pwd.db X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 16:40:11 -0000 Hi Max, 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? iain PS there is also a fork()/daemon() cascade in transport.c I think you removed the unnecessary fork() from main previously? PPS sorry no time to investigate this stuff here just now but I thought I'd let you know :) From owner-freebsd-bluetooth@FreeBSD.ORG Tue Dec 8 23:48:29 2009 Return-Path: Delivered-To: freebsd-bluetooth@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 4E7D51065692 for ; Tue, 8 Dec 2009 23:48:29 +0000 (UTC) (envelope-from maksim.yevmenkin@gmail.com) Received: from mail-pw0-f44.google.com (mail-pw0-f44.google.com [209.85.160.44]) by mx1.freebsd.org (Postfix) with ESMTP id 23A368FC08 for ; Tue, 8 Dec 2009 23:48:28 +0000 (UTC) Received: by pwi15 with SMTP id 15so2000298pwi.3 for ; Tue, 08 Dec 2009 15:48:28 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:mime-version:received:in-reply-to:references :date:message-id:subject:from:to:cc:content-type; bh=5MN4hQNImWdWI869I2Foe6OR3dmHHYSMrl6WLWjHMYk=; b=pOGOapCBxQVgh5k+uj4PngXLCJgUpU72Vt4riuDsRD0VmaAM8IMal/EpJF/b7KBSt/ 9F2hm5xlzQA+4jjkLJ2+UqaZtAMTU/+ce81Bbe3vUMZ5DiA+9D0PAh7tzqP9dxB37R9+ 6PRbSKC7Ncik7WRnAgwgGh6qJ1fMVbUHwdRnY= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :cc:content-type; b=D7IUw2bUk2l8RATJo3GRj9Gvm3YPTbe3EcLY4P2Jt3zJng8fMqAgmgvy+2AOWOSav3 NCYzKf9TN1HSgVQy1eZ/Lf99zC80yJCIPoSJuiOSdCyUbSQKkYMgZau6oK0JkSRuWfIW fkqJgSWuRr39XjtVbKN4IxqLBtl0HEe2t9u7I= MIME-Version: 1.0 Received: by 10.115.102.5 with SMTP id e5mr12661124wam.210.1260316107551; Tue, 08 Dec 2009 15:48:27 -0800 (PST) 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> <1260285672.503038.542.nullmailer@galant.ukfsn.org> Date: Tue, 8 Dec 2009 15:48:27 -0800 Message-ID: From: Maksim Yevmenkin To: Iain Hibbert Content-Type: text/plain; charset=ISO-8859-1 Cc: freebsd-bluetooth@freebsd.org Subject: Re: obexapp access to pwd.db X-BeenThere: freebsd-bluetooth@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Using Bluetooth in FreeBSD environments List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 08 Dec 2009 23:48:29 -0000 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