2
1

bash32-remove-bzero-dependancy.patch 2.0 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. diff -upr bash-3.2.orig/config.h.in bash-3.2/config.h.in
  2. --- bash-3.2.orig/config.h.in 2006-09-12 22:00:54.000000000 +0200
  3. +++ bash-3.2/config.h.in 2007-08-08 14:15:12.000000000 +0200
  4. @@ -504,9 +504,6 @@
  5. /* Define if you have the bcopy function. */
  6. #undef HAVE_BCOPY
  7. -/* Define if you have the bzero function. */
  8. -#undef HAVE_BZERO
  9. -
  10. /* Define if you have the confstr function. */
  11. #undef HAVE_CONFSTR
  12. diff -upr bash-3.2.orig/configure.in bash-3.2/configure.in
  13. --- bash-3.2.orig/configure.in 2006-09-26 17:05:45.000000000 +0200
  14. +++ bash-3.2/configure.in 2007-08-08 14:14:36.000000000 +0200
  15. @@ -702,7 +702,7 @@ AC_CHECK_FUNCS(dup2 eaccess fcntl getdta
  16. AC_REPLACE_FUNCS(rename)
  17. dnl checks for c library functions
  18. -AC_CHECK_FUNCS(bcopy bzero confstr fnmatch \
  19. +AC_CHECK_FUNCS(bcopy confstr fnmatch \
  20. getaddrinfo gethostbyname getservbyname getservent inet_aton \
  21. memmove pathconf putenv raise regcomp regexec \
  22. setenv setlinebuf setlocale setvbuf siginterrupt strchr \
  23. diff -upr bash-3.2.orig/CWRU/misc/sigstat.c bash-3.2/CWRU/misc/sigstat.c
  24. --- bash-3.2.orig/CWRU/misc/sigstat.c 2002-04-17 19:41:40.000000000 +0200
  25. +++ bash-3.2/CWRU/misc/sigstat.c 2007-08-08 14:11:36.000000000 +0200
  26. @@ -86,7 +86,7 @@ int sig;
  27. init_signames()
  28. {
  29. register int i;
  30. - bzero(signames, sizeof(signames));
  31. + memset(signames, 0, sizeof(signames));
  32. #if defined (SIGHUP) /* hangup */
  33. signames[SIGHUP] = "SIGHUP";
  34. diff -upr bash-3.2.orig/lib/sh/oslib.c bash-3.2/lib/sh/oslib.c
  35. --- bash-3.2.orig/lib/sh/oslib.c 2001-12-06 19:26:21.000000000 +0100
  36. +++ bash-3.2/lib/sh/oslib.c 2007-08-08 14:11:44.000000000 +0200
  37. @@ -170,23 +170,6 @@ bcopy (s,d,n)
  38. }
  39. #endif /* !HAVE_BCOPY */
  40. -#if !defined (HAVE_BZERO)
  41. -# if defined (bzero)
  42. -# undef bzero
  43. -# endif
  44. -void
  45. -bzero (s, n)
  46. - char *s;
  47. - int n;
  48. -{
  49. - register int i;
  50. - register char *r;
  51. -
  52. - for (i = 0, r = s; i < n; i++)
  53. - *r++ = '\0';
  54. -}
  55. -#endif
  56. -
  57. #if !defined (HAVE_GETHOSTNAME)
  58. # if defined (HAVE_UNAME)
  59. # include <sys/utsname.h>