[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <467ACF37.8050504@zytor.com>
Date: Thu, 21 Jun 2007 12:19:19 -0700
From: "H. Peter Anvin" <hpa@...or.com>
To: Hans-Peter Jansen <hpj@...la.net>
CC: linux-kernel@...r.kernel.org,
"Dr. David Alan Gilbert" <linux@...blig.org>,
Karel Zak <kzak@...hat.com>, linux-fsdevel@...r.kernel.org,
util-linux-ng@...r.kernel.org
Subject: Re: Adding subroot information to /proc/mounts, or obtaining that
through other means
Hans-Peter Jansen wrote:
>> That's already handled just fine:
>>
>> bash-3.1$ mkdir /tmp/'Jag är: \
>> en liten mask'
>> bash-3.1$ sudo mount -t tmpfs none '/tmp/Jag är: \
>> en liten mask'/
>> bash-3.1$ tail -1 /proc/mounts
>> none /tmp/Jag\040är:\040\134\012en\040liten\040mask tmpfs rw 0 0
>> bash-3.1$
>
> Hmm, and what about the even sicker case: /tmp/\040, parse as /tmp/\\040?
> Do userspace cope with this?
Look at the example above, it contains a backslash already. It's
escaped as \134.
"Does userspace cope with this" is of course an impossible question to
answer, since userspace is in theory unbounded. However, if it doesn't,
it is broken and needs to be fixed.
-hpa
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@...r.kernel.org
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/
Powered by blists - more mailing lists