Date: Thu, 31 Jul 2003 02:08:42 +0200 From: Simon Barner <barner@in.tum.de> To: Murray Taylor <murraytaylor@bytecraftsystems.com> Cc: kientzle@acm.org Subject: Re: getfsent(3) and spaces in fstab Message-ID: <20030731000842.GE531@zi025.glhnet.mhn.de> In-Reply-To: <1059608748.64020.10.camel@mjtdev1.dand06.au.bytecraft.au.com> 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>
next in thread | previous in thread | raw e-mail | index | archive | help
--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 <fstab.h> 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--
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20030731000842.GE531>