From owner-freebsd-hackers@FreeBSD.ORG Wed Jul 30 17:08:45 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 50F6B37B401 for ; Wed, 30 Jul 2003 17:08:45 -0700 (PDT) Received: from mailout.informatik.tu-muenchen.de (mailout.informatik.tu-muenchen.de [131.159.0.5]) by mx1.FreeBSD.org (Postfix) with ESMTP id 6F40D43FAF for ; Wed, 30 Jul 2003 17:08:44 -0700 (PDT) (envelope-from barner@in.tum.de) Received: by zi025.glhnet.mhn.de (Postfix, from userid 1000) id E2EA038A67; Thu, 31 Jul 2003 02:08:42 +0200 (CEST) Date: Thu, 31 Jul 2003 02:08:42 +0200 From: Simon Barner To: Murray Taylor Message-ID: <20030731000842.GE531@zi025.glhnet.mhn.de> References: <20030730224505.GD531@zi025.glhnet.mhn.de> <1059607242.64020.5.camel@mjtdev1.dand06.au.bytecraft.au.com> <3F285560.2090607@acm.org> <1059608748.64020.10.camel@mjtdev1.dand06.au.bytecraft.au.com> Mime-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha1; protocol="application/pgp-signature"; boundary="cpvLTH7QU4gwfq3S" Content-Disposition: inline In-Reply-To: <1059608748.64020.10.camel@mjtdev1.dand06.au.bytecraft.au.com> User-Agent: Mutt/1.5.4i X-Virus-Scanned: by amavisd-new at informatik.tu-muenchen.de cc: freebsd-hackers@freebsd.org cc: Murray Taylor cc: Heiner cc: kientzle@acm.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: Thu, 31 Jul 2003 00:08:45 -0000 --cpvLTH7QU4gwfq3S Content-Type: text/plain; charset=us-ascii Content-Disposition: inline Content-Transfer-Encoding: quoted-printable > Just a thort, not having tried it .. >=20 > does either of the 'standard' methods of including spaces actually work > in fstab ?? >=20 > I speak of quoting (either single or double) and backslashing the space >=20 > "/mnt/space/silly long dirname/filename also with spaces" >=20 > or >=20 > /mnt/space/silly\ long\ dirname/filename\ also\ with\ spaces Sorry, I should have written that I have performed tests: Here is what I did: test\ 1 /mnt/test\ 1 ufs ro 0 0 'test 2' '/mnt/test 2' ufs ro 0 0 "test 3" "/mnt/test 3" ufs ro 0 0 This test program ---> snip <-- #include int main (int argc, char *argv[]) { struct fstab *f; =09 while (0 !=3D (f =3D getfsent ())) { printf ("%s %s %s\n", f->fs_spec, f->fs_file, f->fs_vfstype); } =09 return 0; } ---> snip <-- Gives me the following output: /dev/ad0s2b none swap /dev/ad0s1a / ufs /dev/ad0s2g /usr ufs /dev/ad0s2f /home ufs /dev/ad0s2e /var ufs /dev/vinum/mucke /samba-export ufs /dev/acd0c /mnt/cdrom cd9660 /dev/fd0.1440 /mnt/floppy msdos proc /proc procfs kern /kern kernfs linproc /compat/linux/proc linprocfs fstab: /etc/fstab:14: Inappropriate file type or format fstab: /etc/fstab:15: Inappropriate file type or format fstab: /etc/fstab:16: Inappropriate file type or format Simon --cpvLTH7QU4gwfq3S Content-Type: application/pgp-signature; name="signature.asc" Content-Description: Digital signature Content-Disposition: inline -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.2 (FreeBSD) iD8DBQE/KF4KCkn+/eutqCoRApBjAJkB+bIuI2N1yGjr2UNkDBBZCRsVuACgwrd3 0+3hEz+inSvZoaPX2RaMpLU= =JE9Q -----END PGP SIGNATURE----- --cpvLTH7QU4gwfq3S--