patch-unix_tfconfig 1.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. $OpenBSD: patch-unix_tfconfig,v 1.2 2013/08/15 14:54:07 naddy Exp $
  2. --- unix/tfconfig.orig Sun Aug 11 22:53:07 2013
  3. +++ unix/tfconfig Sun Aug 11 22:55:49 2013
  4. @@ -223,17 +223,17 @@ fi
  5. echo
  6. echo 'To change these locations type "n" now and edit the unix/Config file.'
  7. -while [ -z "$ans" ]; do
  8. - echo 'Continue? (y/n)'
  9. - read ans;
  10. - case "$ans" in
  11. - y|Y) break ;;
  12. - n|N) exit 1 ;;
  13. - *) ans=
  14. - echo 'Please answer "y" or "n".'
  15. - ;;
  16. - esac
  17. -done
  18. +# while [ -z "$ans" ]; do
  19. +# echo 'Continue? (y/n)'
  20. +# read ans;
  21. +# case "$ans" in
  22. +# y|Y) break ;;
  23. +# n|N) exit 1 ;;
  24. +# *) ans=
  25. +# echo 'Please answer "y" or "n".'
  26. +# ;;
  27. +# esac
  28. +# done
  29. echo; echo
  30. rm -f ../src/Makefile ${AOUT}
  31. @@ -561,6 +561,8 @@ int main() {
  32. raise(0);
  33. setlocale(0, "C");
  34. sigaction(0, NULL, NULL);
  35. + arc4random();
  36. + arc4random_uniform(0);
  37. srand(0);
  38. srandom(0);
  39. strcasecmp(NULL, NULL);
  40. @@ -613,7 +615,8 @@ fi
  41. for sym in \
  42. bcopy bsearch bzero connect fileno getcwd gethostbyname getpwnam \
  43. gettimeofday getwd h_errno hstrerror index kill memcpy memset raise \
  44. - setlocale sigaction srand srandom strcasecmp strchr strcmpi strcspn \
  45. + setlocale sigaction arc4random arc4random_uniform srand srandom \
  46. + strcasecmp strchr strcmpi strcspn \
  47. strerror strftime stricmp strstr strtod strtol tzset waitpid
  48. do
  49. if egrep "(^|[^a-z_])_?_?${sym}([^a-z]|\$)" symtest.out >/dev/null; then