On Tue, May 24, 2011 at 01:05:07AM +0200, Karel Zak wrote:
> On Fri, May 20, 2011 at 05:09:25PM +0200, Michal Soltys wrote:
> > +fstab_mount() {
> > +    local _dev _mp _fs _opts _dump _pass _rest
> >      test -e "$1" || return 1
> >      info "Mounting from $1"
> > -    while read dev mp type opts rest; do
> > -   [ -z "${dev%%#*}" ]&& continue # Skip comment lines
> > -   mount -v -t $type -o $opts $dev $NEWROOT/$mp
> > -    done < $1 | vinfo
> > +    while read _dev _mp _fs _opts _dump _pass _rest; do
> 
>  How does this code handle encoding in fstab? (e.g. /path/foo\x40bar)

 Sorry, should be "/path/foo\040bar".

 The mount(8) and friends use octal escapes only. 
 
    Karel

-- 
 Karel Zak  <[email protected]>
 http://karelzak.blogspot.com
--
To unsubscribe from this list: send the line "unsubscribe initramfs" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Reply via email to