Skip site navigation (1)Skip section navigation (2)
Date:      Sat, 23 Apr 2016 09:22:26 -0600
From:      James Gritton <jamie@gritton.org>
To:        freebsd-jail@freebsd.org
Subject:   Re: [Bug 208663] It is not possible to use spaces in fstab paths when using jails
Message-ID:  <a6403d0fb3f75cbd5c776c63615006a4@gritton.org>
In-Reply-To: <53868.76.193.16.109.1461420555.squirrel@cosmo.uchicago.edu>
References:  <bug-208663-9824@https.bugs.freebsd.org/bugzilla/> <bug-208663-9824-LNL29IWJGi@https.bugs.freebsd.org/bugzilla/> <53868.76.193.16.109.1461420555.squirrel@cosmo.uchicago.edu>

next in thread | previous in thread | raw e-mail | index | archive | help
On 2016-04-23 08:09, Valeri Galtsev wrote:
> On Sat, April 23, 2016 1:58 am, bugzilla-noreply@freebsd.org wrote:
>> https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=208663
>> 
>> --- Comment #2 from Chris Hutchinson <portmaster@bsdforge.com> ---
>> Won't the following work?
>> 
>> $ mkdir /tmp/Space\ Test
>> $ mkdir /tmp/Space\ Mountpoint
>> 
>> $ echo "/tmp/Space\ Test /tmp/Space\ Mountpoint" nullfs ro 0 0" >>
>> /etc/fstab.jail_name
>> 
> 
> My attitude would be: keep the spaces out of directory names - at least
> where educated person: system administrator makes the decision, such as
> mount points. Not everything that other systems have has to be accepted
> for FreeBSD. Such as spaces in paths MS Widows system is infested with 
> due
> to dumb decision by system vendor promoting usernames "Firstname 
> Lastname"
> like.
> 
> Just my humble opinion.

There's something to that - spaces in filenames are a big headache.  But 
in this case it's a settled question - it's not something that "other 
systems" do, but something that is already supported in FreeBSD: 
getfsent(3) allows an fstab to have escaped characters in path names, so 
jail(8) should as well.  If I could just use getfsent(3) myself this 
would never have come up, but my need to operate in in-memory strings 
instead of a file made that inconvenient.  Fortunately it just called 
strunvis(3) which is trivial to add.

- Jamie



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?a6403d0fb3f75cbd5c776c63615006a4>