summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBruno Haible <bruno@clisp.org>2006-12-22 12:07:22 +0000
committerBruno Haible <bruno@clisp.org>2009-06-23 12:14:33 +0200
commit803a03cb2e74cde27e9a30f92f40dc2b17b11beb (patch)
tree2fbd3adbb8296d650da9cc438aa29e8b05638560
parent5fe16fe83d9ddf95e7db6b0fb4029c36b4151e98 (diff)
downloadexternal_gettext-803a03cb2e74cde27e9a30f92f40dc2b17b11beb.zip
external_gettext-803a03cb2e74cde27e9a30f92f40dc2b17b11beb.tar.gz
external_gettext-803a03cb2e74cde27e9a30f92f40dc2b17b11beb.tar.bz2
Protect against weird directory names.
-rw-r--r--gettext-tools/misc/ChangeLog4
-rw-r--r--gettext-tools/misc/gettextize.in4
2 files changed, 6 insertions, 2 deletions
diff --git a/gettext-tools/misc/ChangeLog b/gettext-tools/misc/ChangeLog
index 6de73ad..26829cc 100644
--- a/gettext-tools/misc/ChangeLog
+++ b/gettext-tools/misc/ChangeLog
@@ -1,5 +1,9 @@
2006-12-19 Bruno Haible <bruno@clisp.org>
+ * gettextize.in: Protect against spaces in the value of $gettext_dir.
+
+2006-12-19 Bruno Haible <bruno@clisp.org>
+
* gettextize.in (func_usage): Document --po-dir.
Handle the --po-dir option. Loop over each specified --po-dir value
instead of hardcoding po/.
diff --git a/gettext-tools/misc/gettextize.in b/gettext-tools/misc/gettextize.in
index ff2b3a4..687bed9 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