logo

live-bootstrap

Mirror of <https://github.com/fosslinux/live-bootstrap>

missing-defines.patch (1049B)


  1. SPDX-FileCopyrightText: 2021 fosslinux <fosslinux@aussies.space>
  2. SPDX-License-Identifier: GPL-2.0-or-later
  3. We don't actually want any of these things, which should really be hidden
  4. behind the ifdefs given here to disable them when they are not being
  5. used (as we do).
  6. --- bash-2.05b/execute_cmd.c 2021-01-15 09:38:55.730307635 +1100
  7. +++ bash-2.05b/execute_cmd.c 2021-01-15 09:43:41.046896754 +1100
  8. @@ -286,12 +286,18 @@
  9. {
  10. if (currently_executing_command->type == cm_simple)
  11. return currently_executing_command->value.Simple->line;
  12. +#ifdef COND_COMMAND
  13. else if (currently_executing_command->type == cm_cond)
  14. return currently_executing_command->value.Cond->line;
  15. +#endif
  16. +#ifdef DPAREN_ARITHMETIC
  17. else if (currently_executing_command->type == cm_arith)
  18. return currently_executing_command->value.Arith->line;
  19. +#endif
  20. +#ifdef ARITH_FOR_COMMAND
  21. else if (currently_executing_command->type == cm_arith_for)
  22. return currently_executing_command->value.ArithFor->line;
  23. +#endif
  24. else
  25. return line_number;
  26. }