Allowing \xxx in fstab
John Baldwin
jhb at FreeBSD.org
Sat Oct 6 19:39:48 UTC 2012
On 10/6/12 5:11 AM, Stefan Farfeleder wrote:
> On Sat, Oct 06, 2012 at 08:57:58AM +0000, Poul-Henning Kamp wrote:
>> In message <20121006084936.GA1434 at mole.fafoe.narf.at>, Stefan Farfeleder writes
>> :
>>
>>> +static void
>>> +unescapeoctal(char *s)
>>
>>
>> Use unvis(3) ?
>
> The unvis functions unfortunately cannot be told be decode only octal
> escapes. But if everyone agrees that strings like "\^C" or "\$" will
> never occur in device names, I'm happy to use them.
I think you are probably fine to just use strunvis(). It would also be
nice to allow simple escaping of spaces (\ ).
--
John Baldwin
More information about the freebsd-arch
mailing list