You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

46 lines
1.5 KiB

  1. Index: bash-4.4/patchlevel.h
  2. ===================================================================
  3. --- bash-4.4.orig/patchlevel.h
  4. +++ bash-4.4/patchlevel.h
  5. @@ -25,6 +25,6 @@
  6. regexp `^#define[ ]*PATCHLEVEL', since that's what support/mkversion.sh
  7. looks for to find the patch level (for the sccs version string). */
  8. -#define PATCHLEVEL 1
  9. +#define PATCHLEVEL 2
  10. #endif /* _PATCHLEVEL_H_ */
  11. Index: bash-4.4/subst.c
  12. ===================================================================
  13. --- bash-4.4.orig/subst.c
  14. +++ bash-4.4/subst.c
  15. @@ -5931,6 +5931,7 @@ read_comsub (fd, quoted, rflag)
  16. char *istring, buf[128], *bufp, *s;
  17. int istring_index, istring_size, c, tflag, skip_ctlesc, skip_ctlnul;
  18. ssize_t bufn;
  19. + int nullbyte;
  20. istring = (char *)NULL;
  21. istring_index = istring_size = bufn = tflag = 0;
  22. @@ -5938,6 +5939,8 @@ read_comsub (fd, quoted, rflag)
  23. for (skip_ctlesc = skip_ctlnul = 0, s = ifs_value; s && *s; s++)
  24. skip_ctlesc |= *s == CTLESC, skip_ctlnul |= *s == CTLNUL;
  25. + nullbyte = 0;
  26. +
  27. /* Read the output of the command through the pipe. This may need to be
  28. changed to understand multibyte characters in the future. */
  29. while (1)
  30. @@ -5956,7 +5959,11 @@ read_comsub (fd, quoted, rflag)
  31. if (c == 0)
  32. {
  33. #if 1
  34. - internal_warning ("%s", _("command substitution: ignored null byte in input"));
  35. + if (nullbyte == 0)
  36. + {
  37. + internal_warning ("%s", _("command substitution: ignored null byte in input"));
  38. + nullbyte = 1;
  39. + }
  40. #endif
  41. continue;
  42. }