--- grub-mkconfig_lib.old 2011-02-08 12:13:51.524477788 +0100 +++ grub-mkconfig_lib 2011-02-08 12:16:33.727467298 +0100 @@ -44,20 +44,20 @@ make_system_path_relative_to_its_root () { - ${grub_mkrelpath} $1 + ${grub_mkrelpath} "${1}" } is_path_readable_by_grub () { - path=$1 + path="${1}" # abort if path doesn't exist - if test -e $path ; then : ;else + if test -e "${path}" ; then : ;else return 1 fi # abort if file is in a filesystem we can't read - if ${grub_probe} -t fs $path > /dev/null 2>&1 ; then : ; else + if ${grub_probe} -t fs "${path}" > /dev/null 2>&1 ; then : ; else return 1 fi