OpenSDE Packages Database (without history before r20070)
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.

38 lines
1.4 KiB

  1. # --- T2-COPYRIGHT-NOTE-BEGIN ---
  2. # This copyright note is auto-generated by ./scripts/Create-CopyPatch.
  3. #
  4. # T2 SDE: package/.../embutils/ls-gcc-4.1-sparc-mis-opt.patch
  5. # Copyright (C) 2006 The T2 SDE Project
  6. #
  7. # More information can be found in the files COPYING and README.
  8. #
  9. # This patch file is dual-licensed. It is available under the license the
  10. # patched project is licensed under, as long as it is an OpenSource license
  11. # as defined at http://www.opensource.org/ (e.g. BSD, X11) or under the terms
  12. # of the GNU General Public License as published by the Free Software
  13. # Foundation; either version 2 of the License, or (at your option) any later
  14. # version.
  15. # --- T2-COPYRIGHT-NOTE-END ---
  16. gcc-4.1 on sparc64 appears to miscompile the expression, maybe load the last
  17. value even though the former is already NULL - I'll check in-depth some time
  18. later when I have more time.
  19. - Rene Rebe <rene@exactcode.de>
  20. --- embutils-0.17/ls.c 2006-06-18 11:25:22.170000000 +0000
  21. +++ ./ls.c 2006-06-18 12:00:50.270000000 +0000
  22. @@ -733,8 +733,12 @@
  23. char *expanded;
  24. if (e->d_name[0]=='.') {
  25. /* is it "." or ".."? */
  26. - if (e->d_name[1]==0 || (e->d_name[1]=='.' && e->d_name[2]==0))
  27. + if (e->d_name[1] == 0) {
  28. if (_A || !_a) continue;
  29. + } if (e->d_name[1] == '.') {
  30. + if(e->d_name[2] == 0)
  31. + if (_A || !_a) continue;
  32. + }
  33. if (!_A && !_a) continue;
  34. }
  35. expanded=alloca(strlen(name)+strlen(e->d_name)+3);