Date: Sun, 16 Mar 2003 23:43:44 -0800 From: Conrad Minshall <conrad@apple.com> To: Andrew Reilly <areilly@bigpond.net.au>, Boris Popov <bp@FreeBSD.ORG>, fs@FreeBSD.ORG Cc: Conrad Minshall <conrad@mac.com> Subject: Re: mount_smbfs in FreeBSD-STABLE Message-ID: <2E513E7C-584C-11D7-8BB2-000A95757E40@apple.com> In-Reply-To: <1047872758.78456.29.camel@gurney.reilly.home>
next in thread | previous in thread | raw e-mail | index | archive | help
For item 1)... the SMB URL definition allows %nn escapes, as usual. So if the FreeBSD version of mount_smbfs supports it, you can specify spaces with a "%20". If it doesn't support it, you might drop an "unpercent" function into mount_smbfs. Here's such a function... "Darwin" has more source code context if it is needed... /* * Removes the "%" escape sequences from a URL component. * See IETF RFC 2396. */ char * unpercent(char * component) { unsigned char c, *s; unsigned hi, lo; if (component) for (s = component; (c = *s); s++) { if (c != '%') continue; if ((hi = xtoi(s[1])) > 15 || (lo = xtoi(s[2])) > 15) continue; /* ignore invalid escapes */ s[0] = hi*16 + lo; /* * This was strcpy(s + 1, s + 3); * But nowadays leftward overlapping copies are * officially undefined in C. Ours seems to * work or not depending upon alignment. */ memmove(s+1, s+3, strlen(s+3) + 1); } return (component); } On Sunday, March 16, 2003, at 07:45 PM, Andrew Reilly wrote: > Hi Boris, > > Firstly, enormous thanks for getting mount_smbfs going in the first > place: it's tremendously useful. > > I have three questions, though, two of which may not be the domain of > mount_smbfs at all: > > 1) Is it possible to use fstab for smbfs mounts when the name of the > filesystem to be mounted contains a space? I haven't figured out how > to > escape a space there, yet. > > 2) Is it possible to use amd or something similar to auto-mount > smbfs/cifs file systems? > > 3) Is it possible to have mount_smbfs authenticate with a windows > domain > login, rather than a workgrop login? > > Thanks in advance, > > -- > Andrew Reilly <areilly@bigpond.net.au> > > > To Unsubscribe: send mail to majordomo@FreeBSD.org > with "unsubscribe freebsd-fs" in the body of the message > > -- Conrad Minshall conrad@apple.com 408-446-2323 To Unsubscribe: send mail to majordomo@FreeBSD.org with "unsubscribe freebsd-fs" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?2E513E7C-584C-11D7-8BB2-000A95757E40>