openssh.patch 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135
  1. diff -urN openssh-3.5p1.orig/configure.ac openssh-3.5p1/configure.ac
  2. --- openssh-3.5p1.orig/configure.ac 2002-09-25 18:38:47.000000000 -0600
  3. +++ openssh-3.5p1/configure.ac 2003-03-04 04:54:47.000000000 -0700
  4. @@ -504,6 +504,9 @@
  5. [
  6. AC_MSG_RESULT(no)
  7. AC_DEFINE(BROKEN_ONE_BYTE_DIRENT_D_NAME)
  8. + ],
  9. + [AC_MSG_RESULT(yes)
  10. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
  11. ]
  12. )
  13. @@ -535,6 +538,9 @@
  14. [
  15. AC_MSG_RESULT(no)
  16. AC_MSG_ERROR([** Incomplete or missing s/key libraries.])
  17. + ],
  18. + [AC_MSG_RESULT(yes)
  19. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
  20. ])
  21. fi
  22. ]
  23. @@ -676,6 +682,9 @@
  24. AC_MSG_RESULT(no)
  25. AC_DEFINE(BROKEN_SNPRINTF)
  26. AC_MSG_WARN([****** Your snprintf() function is broken, complain to your vendor])
  27. + ],
  28. + [AC_MSG_RESULT(yes)
  29. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
  30. ]
  31. )
  32. fi
  33. @@ -810,6 +819,10 @@
  34. [
  35. AC_MSG_RESULT(not found)
  36. AC_MSG_ERROR(OpenSSL version header not found.)
  37. + ],
  38. + [
  39. + ssl_header_ver="90700f (OpenSSL 0.9.7a 19 Feb 2003)"
  40. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to $ssl_header_ver])
  41. ]
  42. )
  43. @@ -843,6 +856,10 @@
  44. [
  45. AC_MSG_RESULT(not found)
  46. AC_MSG_ERROR(OpenSSL library not found.)
  47. + ],
  48. + [
  49. + ssl_library_ver="90700f (OpenSSL 0.9.7a 19 Feb 2003)"
  50. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to $ssl_library_ver])
  51. ]
  52. )
  53. @@ -860,6 +877,10 @@
  54. [
  55. AC_MSG_RESULT(no)
  56. AC_MSG_ERROR(Your OpenSSL headers do not match your library)
  57. + ],
  58. + [
  59. + AC_MSG_RESULT(yes)
  60. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
  61. ]
  62. )
  63. @@ -889,6 +910,11 @@
  64. # Default to use of the rand helper if OpenSSL doesn't
  65. # seed itself
  66. USE_RAND_HELPER=yes
  67. + ],
  68. + [
  69. + OPENSSL_SEEDS_ITSELF=yes
  70. + AC_MSG_RESULT(yes)
  71. + AC_MSG_WARN([Cannot run test when crosscompiling, defaulted to yes.])
  72. ]
  73. )
  74. @@ -1475,7 +1501,8 @@
  75. #else
  76. main() { exit(0); }
  77. #endif
  78. - ], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ]
  79. + ], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ],
  80. + [ true ]
  81. )
  82. fi
  83. AC_SUBST(NO_SFTP)
  84. @@ -1596,6 +1623,7 @@
  85. }
  86. ],
  87. [ ac_cv_have_accrights_in_msghdr="yes" ],
  88. + [ ac_cv_have_accrights_in_msghdr="no" ],
  89. [ ac_cv_have_accrights_in_msghdr="no" ]
  90. )
  91. ])
  92. @@ -1620,7 +1648,8 @@
  93. }
  94. ],
  95. [ ac_cv_have_control_in_msghdr="yes" ],
  96. - [ ac_cv_have_control_in_msghdr="no" ]
  97. + [ ac_cv_have_control_in_msghdr="no" ],
  98. + [ ac_cv_have_control_in_msghdr="yes" ]
  99. )
  100. ])
  101. if test "x$ac_cv_have_control_in_msghdr" = "xyes" ; then
  102. @@ -1931,13 +1960,14 @@
  103. )
  104. fi
  105. fi
  106. +if test "$cross_compiling" != yes; then
  107. AC_CHECK_FILE("/dev/ptc",
  108. [
  109. AC_DEFINE_UNQUOTED(HAVE_DEV_PTS_AND_PTC)
  110. have_dev_ptc=1
  111. ]
  112. )
  113. -
  114. +fi
  115. # Options from here on. Some of these are preset by platform above
  116. AC_ARG_WITH(mantype,
  117. [ --with-mantype=man|cat|doc Set man page type],
  118. diff -urN openssh-3.5p1.orig/sshd_config openssh-3.5p1/sshd_config
  119. --- openssh-3.5p1.orig/sshd_config 2002-09-26 21:21:58.000000000 -0600
  120. +++ openssh-3.5p1/sshd_config 2003-03-04 04:42:03.000000000 -0700
  121. @@ -89,5 +89,8 @@
  122. #Banner /some/path
  123. #VerifyReverseMapping no
  124. +ClientAliveInterval 15
  125. +ClientAliveCountMax 4
  126. +
  127. # override default of no subsystems
  128. -Subsystem sftp /usr/libexec/sftp-server
  129. +Subsystem sftp /usr/sbin/sftp-server