From owner-freebsd-current@FreeBSD.ORG Fri Oct 19 03:42:25 2007 Return-Path: Delivered-To: freebsd-current@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id E29BE16A421 for ; Fri, 19 Oct 2007 03:42:25 +0000 (UTC) (envelope-from rodrigc@crodrigues.org) Received: from rwcrmhc12.comcast.net (rwcrmhc12.comcast.net [204.127.192.82]) by mx1.freebsd.org (Postfix) with ESMTP id D429F13C459 for ; Fri, 19 Oct 2007 03:42:25 +0000 (UTC) (envelope-from rodrigc@crodrigues.org) Received: from _hostname_ (c-66-31-37-31.hsd1.ma.comcast.net[66.31.37.31]) by comcast.net (rwcrmhc12) with SMTP id <20071019034224m1200gqgvve>; Fri, 19 Oct 2007 03:42:25 +0000 Received: by _HOSTNAME_ (sSMTP sendmail emulation); Thu, 18 Oct 2007 23:42:24 -0400 From: "Craig Rodrigues" Date: Thu, 18 Oct 2007 23:42:24 -0400 To: Tom Evans Message-ID: <20071019034224.GA1167@crodrigues.org> References: <1191507549.1475.69.camel@localhost> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <1191507549.1475.69.camel@localhost> User-Agent: Mutt/1.4.2.3i Cc: freebsd-current@freebsd.org Subject: Re: Difficulties with samba usernames with spaces + patch X-BeenThere: freebsd-current@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: Discussions about the use of FreeBSD-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Fri, 19 Oct 2007 03:42:26 -0000 On Thu, Oct 04, 2007 at 03:19:09PM +0100, Tom Evans wrote: > Mounting from the command line works either with correctly quoting the > host, or using the -U switch, and correctly quoting the argument. > > mount_smbfs -U "Tom Evans" //RAZOR/it /mnt/it > mount_smbfs "//TOM EVANS@RAZOR/IT" /mnt/it > > This clearly seems to be a limitation of fstab(5) (inability to quote > arguments) and/or nsmb.conf(5) (inability to specify username). I am > going to change one or the other to allow this to work; which would be > preferable? If you change fstab(5) to accept "quoted arguments", then you would have to change getfsent() so that it can properly parse an /etc/fstab with quoted arguments. Then you would have to verify that clients of getfsent() such as mount(8) and quotacheck(8) still worked. If you could get that to work, that would be quite nice. -- Craig Rodrigues rodrigc@crodrigues.org