Hello community, here is the log from the commit of package bash for openSUSE:Factory checked in at 2014-04-25 16:06:58 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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 2014-04-06 09:54:14.000000000 +0200 +++ /work/SRC/openSUSE:Factory/.bash.new/bash.changes 2014-04-25 16:07:02.000000000 +0200 @@ -1,0 +2,11 @@ +Tue Apr 15 15:25:55 UTC 2014 - [email protected] + +- Add bash upstream patch 47 to fix a problem where the function + that shortens pathnames for $PS1 according to the value of + $PROMPT_DIRTRIM uses memcpy on potentially-overlapping regions + of memory, when it should use memmove. The result is garbled + pathnames in prompt strings. +- Remove bash-4.2-prompt-dirtrim.patch as this was the original + report of above. + +------------------------------------------------------------------- ++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++ 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-prompt-dirtrim.patch new/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch --- old/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch 2014-01-31 17:37:48.000000000 +0100 +++ new/bash-4.2-patches/bash-4.2-prompt-dirtrim.patch 1970-01-01 01:00:00.000000000 +0100 @@ -1,13 +0,0 @@ -https://lists.gnu.org/archive/html/bug-bash/2014-01/msg00130.html - ---- general.c -+++ general.c 2014-01-31 16:34:21.006235991 +0000 -@@ -766,7 +766,7 @@ trim_pathname (name, maxlen) - *nbeg++ = '.'; - - nlen = nend - ntail; -- memcpy (nbeg, ntail, nlen); -+ memmove (nbeg, ntail, nlen); - nbeg[nlen] = '\0'; - - return name; diff -urN '--exclude=CVS' '--exclude=.cvsignore' '--exclude=.svn' '--exclude=.svnignore' old/bash-4.2-patches/bash42-047 new/bash-4.2-patches/bash42-047 --- old/bash-4.2-patches/bash42-047 1970-01-01 01:00:00.000000000 +0100 +++ new/bash-4.2-patches/bash42-047 2014-04-14 16:17:08.000000000 +0200 @@ -0,0 +1,49 @@ + BASH PATCH REPORT + ================= + +Bash-Release: 4.2 +Patch-ID: bash42-047 + +Bug-Reported-by: Matthew Riley <[email protected]> +Bug-Reference-ID: <ca+nedkwp3gw+gbcf5+xnr1pvcuzb1mdvzvmujophrgha9t7...@mail.gmail.com> +Bug-Reference-URL: http://lists.gnu.org/archive/html/bug-bash/2013-03/msg00047.html + +Bug-Description: + +The function that shortens pathnames for $PS1 according to the value of +$PROMPT_DIRTRIM uses memcpy on potentially-overlapping regions of memory, +when it should use memmove. The result is garbled pathnames in prompt +strings. + +Patch (apply with `patch -p0'): + +*** ../bash-4.2-patched/general.c 2010-12-12 15:06:27.000000000 -0500 +--- general.c 2014-01-30 16:46:15.000000000 -0500 +*************** +*** 767,771 **** + + nlen = nend - ntail; +! memcpy (nbeg, ntail, nlen); + nbeg[nlen] = '\0'; + +--- 767,771 ---- + + nlen = nend - ntail; +! memmove (nbeg, ntail, nlen); + nbeg[nlen] = '\0'; + +*** ../bash-4.2-patched/patchlevel.h Sat Jun 12 20:14:48 2010 +--- patchlevel.h Thu Feb 24 21:41:34 2011 +*************** +*** 26,30 **** + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 46 + + #endif /* _PATCHLEVEL_H_ */ +--- 26,30 ---- + looks for to find the patch level (for the sccs version string). */ + +! #define PATCHLEVEL 47 + + #endif /* _PATCHLEVEL_H_ */ -- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]
