From: Bruno Haible Date: Fri, 22 Dec 2006 12:07:22 +0000 (+0000) Subject: Protect against weird directory names. X-Git-Tag: v0.17~543 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=803a03cb2e74cde27e9a30f92f40dc2b17b11beb;p=thirdparty%2Fgettext.git Protect against weird directory names. --- diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog index 6de73adf2..26829cca9 100644 --- a/gettext-tools/misc/ChangeLog +++ b/gettext-tools/misc/ChangeLog @@ -1,3 +1,7 @@ +2006-12-19 Bruno Haible + + * gettextize.in: Protect against spaces in the value of $gettext_dir. + 2006-12-19 Bruno Haible * gettextize.in (func_usage): Document --po-dir. diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in index ff2b3a4a5..687bed932 100644 --- a/gettext-tools/misc/gettextize.in +++ b/gettext-tools/misc/gettextize.in @@ -321,7 +321,7 @@ if test -n "$auxdir"; then fi # For simplicity we change to the gettext source directory. -cd $gettext_dir || +cd "$gettext_dir" || func_fatal_error "gettext source directory '${gettext_dir}' doesn't exist" # Variables which keep track what has been modified. @@ -724,7 +724,7 @@ You can then remove $podir/Makevars.template. fi fi func_backup "$podir/$file" - func_linkorcopy $file $gettext_dir/po/$file "$podir/$file" + func_linkorcopy $file "$gettext_dir/po/$file" "$podir/$file" ;; esac done