From owner-freebsd-hackers@FreeBSD.ORG Tue Aug 5 02:48:01 2003 Return-Path: Delivered-To: freebsd-hackers@freebsd.org Received: from mx1.FreeBSD.org (mx1.freebsd.org [216.136.204.125]) by hub.freebsd.org (Postfix) with ESMTP id 6924A37B401 for ; Tue, 5 Aug 2003 02:48:01 -0700 (PDT) Received: from sweeper.openet-telecom.com (mail.openet-telecom.com [62.17.151.60]) by mx1.FreeBSD.org (Postfix) with ESMTP id 4647A43FA3 for ; Tue, 5 Aug 2003 02:47:58 -0700 (PDT) (envelope-from peter.edwards@openet-telecom.com) Received: from mail.openet-telecom.com (unverified) by sweeper.openet-telecom.com ; Tue, 5 Aug 2003 10:51:04 +0100 Received: from [10.0.0.40] (10.0.0.40) by mail.openet-telecom.com (NPlex 6.5.027) id 3F268E0000003BDE; Tue, 5 Aug 2003 10:46:25 +0100 From: Peter Edwards To: Simon Barner In-Reply-To: <20030730224505.GD531@zi025.glhnet.mhn.de> References: <20030730224505.GD531@zi025.glhnet.mhn.de> Content-Type: text/plain Organization: Openet Telecom Message-Id: <1060076564.57234.11.camel@rocklobster.openet-telecom.lan> Mime-Version: 1.0 X-Mailer: Ximian Evolution 1.4.0 Date: 05 Aug 2003 10:42:44 +0100 Content-Transfer-Encoding: 7bit cc: freebsd-hackers@freebsd.org Subject: Re: getfsent(3) and spaces in fstab X-BeenThere: freebsd-hackers@freebsd.org X-Mailman-Version: 2.1.1 Precedence: list List-Id: Technical Discussions relating to FreeBSD List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Aug 2003 09:48:01 -0000 Hi, Check PR 37569: This bugged the hell out of me also, so I created a patch to allow enclosing the device name in quotes. The PR was logged over a year ago: I can't remember the details, but the source has been sitting silently in my tree and working since then. Whatever way the problem is resolved, can someone close the PR? On Wed, 2003-07-30 at 23:45, Simon Barner wrote: > Hi -hackers, > > discussing some modifications for the sysutils/linneighborhood port, > Heiner Eichmann and me came across the following problem: > > getfsent(3) will fail, if the name of the file system or the mount point > contains whitespaces, be them escaped or not (file system names with > spaces occur quite of with smbfs mounts). > > I searched the mail archives and the PR data base, but apart from this > email here > > http://freebsd.rambler.ru/bsdmail/freebsd-questions_2003/msg05947.html > > this problem seems to be either unknown or rather well-known but > accepted. > > I know there is workaround which is to create symbolic links for the > paths that contain spaces, but to my mind this is not a real solution. > > Before taking any further action: > > Do file system names and mount points with whitespaces violate the > specification of fstab? If so, the least thing I'd suggest is the document > this restriction. > > Or should one extend 'getfsent' such that is able to cope with those > whitespaces? I am not sure whether this would have any further > implications so I am asking here. > > Cheers, > Simon