]> git.ipfire.org Git - thirdparty/gettext.git/commitdiff
Protect against weird directory names.
authorBruno Haible <bruno@clisp.org>
Fri, 22 Dec 2006 12:07:22 +0000 (12:07 +0000)
committerBruno Haible <bruno@clisp.org>
Tue, 23 Jun 2009 10:14:33 +0000 (12:14 +0200)
gettext-tools/misc/ChangeLog
gettext-tools/misc/gettextize.in

index 6de73adf2cbc86470cb8fb01cde9a972905b9fa3..26829cca9690390ab3a93ed8f1119b4404f6ccbc 100644 (file)
@@ -1,3 +1,7 @@
+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.
index ff2b3a4a5f88c660598a4bd4198ada93a79e6360..687bed932f5c088970ecd167a45c4e0a138c402a 100644 (file)
@@ -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