commit bash for openSUSE:Factory
Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2013-07-11 13:27:19 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Comparing /work/SRC/openSUSE:Factory/bash (Old) and /work/SRC/openSUSE:Factory/.bash.new (New) ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Package is "bash" Changes: -------- --- /work/SRC/openSUSE:Factory/bash/bash.changes 2013-06-05 11:40:08.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2013-07-11 13:27:21.000000000 +0200 @@ -1,0 +2,8 @@ +Mon Jul 8 11:27:51 UTC 2013 - werner@suse.de + +- Add bash-4.2-strcpy.patch from upstream mailing list to patch + collection tar ball to avoid when using \w in the prompt and + changing the directory outside of HOME the a strcpy work on + overlapping memory areas. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ Other differences: ------------------ ++++++ bash-4.2-patches.tar.bz2 ++++++ diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash-4.2-strcpy.patch new/bash-4.2-patches/bash-4.2-strcpy.patch --- old/bash-4.2-patches/bash-4.2-strcpy.patch 1970-01-01 01:00:00.000000000 +0100 +++ new/bash-4.2-patches/bash-4.2-strcpy.patch 2013-07-08 12:09:29.000000000 +0200 @@ -0,0 +1,34 @@ +| Message-ID: <51D5EDBA.8010503@case.edu> +| > Bash Version: 4.2 +| > Patch Level: 45 +| > Release Status: release +| > +| > Description: +| > When using \w in the prompt and changing the directory outside of HOME +| > bash crashes with an abort trap. +| > strcpy(3) say src and dst must not overlap. OS X 10.9 checks that on +| > runtime and forcefully aborts your code if they do. +| +| Thanks for the report. This will be fixed in the next release of bash. If +| you choose to use your patch before then, you need to add braces around the +| code you added. +| +--- parse.y ++++ parse.y 2013-07-08 10:07:20.649939525 +0000 +@@ -5273,9 +5273,13 @@ decode_prompt_string (string) + #undef ROOT_PATH + #undef DOUBLE_SLASH_ROOT + else +- /* polite_directory_format is guaranteed to return a string +- no longer than PATH_MAX - 1 characters. */ +- strcpy (t_string, polite_directory_format (t_string)); ++ { ++ /* polite_directory_format is guaranteed to return a string ++ no longer than PATH_MAX - 1 characters. */ ++ temp = polite_directory_format (t_string); ++ if (temp != t_string) ++ strcpy (t_string, temp); ++ } + + temp = trim_pathname (t_string, PATH_MAX - 1); + /* If we're going to be expanding the prompt string later, -- To unsubscribe, e-mail: opensuse-commit+unsubscribe@opensuse.org For additional commands, e-mail: opensuse-commit+help@opensuse.org
participants (1)
-
root@hilbert.suse.de