diff options
-rw-r--r-- | ChangeLog | 3 | ||||
-rw-r--r-- | configure.ac | 40 |
2 files changed, 24 insertions, 19 deletions
@@ -17,6 +17,7 @@ | |||
17 | [auth2-passwd.c] | 17 | [auth2-passwd.c] |
18 | Ignore password change request during password auth (which we currently | 18 | Ignore password change request during password auth (which we currently |
19 | don't support) and discard proposed new password. corrections/ok markus@ | 19 | don't support) and discard proposed new password. corrections/ok markus@ |
20 | - (dtucker) [configure.ac] Only test setresuid and setresgid if they exist. | ||
20 | 21 | ||
21 | 20031219 | 22 | 20031219 |
22 | - (dtucker) [defines.h] Bug #458: Define SIZE_T_MAX as UINT_MAX if we | 23 | - (dtucker) [defines.h] Bug #458: Define SIZE_T_MAX as UINT_MAX if we |
@@ -1636,4 +1637,4 @@ | |||
1636 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. | 1637 | - Fix sshd BindAddress and -b options for systems using fake-getaddrinfo. |
1637 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au | 1638 | Report from murple@murple.net, diagnosis from dtucker@zip.com.au |
1638 | 1639 | ||
1639 | $Id: ChangeLog,v 1.3157 2003/12/31 00:43:24 dtucker Exp $ | 1640 | $Id: ChangeLog,v 1.3158 2003/12/31 03:59:17 dtucker Exp $ |
diff --git a/configure.ac b/configure.ac index 6c8621ce5..5ac6acb38 100644 --- a/configure.ac +++ b/configure.ac | |||
@@ -1,4 +1,4 @@ | |||
1 | # $Id: configure.ac,v 1.178 2003/12/18 01:52:19 dtucker Exp $ | 1 | # $Id: configure.ac,v 1.179 2003/12/31 03:59:17 dtucker Exp $ |
2 | 2 | ||
3 | AC_INIT | 3 | AC_INIT |
4 | AC_CONFIG_SRCDIR([ssh.c]) | 4 | AC_CONFIG_SRCDIR([ssh.c]) |
@@ -749,7 +749,7 @@ AC_CHECK_FUNCS(\ | |||
749 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ | 749 | mkdtemp mmap ngetaddrinfo nsleep ogetaddrinfo openlog_r openpty \ |
750 | pstat readpassphrase realpath recvmsg rresvport_af sendmsg \ | 750 | pstat readpassphrase realpath recvmsg rresvport_af sendmsg \ |
751 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ | 751 | setdtablesize setegid setenv seteuid setgroups setlogin setpcred \ |
752 | setproctitle setregid setresgid setresuid setreuid setrlimit \ | 752 | setproctitle setregid setreuid setrlimit \ |
753 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ | 753 | setsid setvbuf sigaction sigvec snprintf socketpair strerror \ |
754 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ | 754 | strlcat strlcpy strmode strnvis strtoul sysconf tcgetpgrp \ |
755 | truncate utimes vhangup vsnprintf waitpid \ | 755 | truncate utimes vhangup vsnprintf waitpid \ |
@@ -783,29 +783,33 @@ AC_CHECK_DECL(tcsendbreak, | |||
783 | [#include <termios.h>] | 783 | [#include <termios.h>] |
784 | ) | 784 | ) |
785 | 785 | ||
786 | dnl Some platorms have setresuid that isn't implemented | 786 | AC_CHECK_FUNCS(setresuid, [ |
787 | AC_MSG_CHECKING(if setresuid seems to work) | 787 | dnl Some platorms have setresuid that isn't implemented, test for this |
788 | AC_TRY_RUN([ | 788 | AC_MSG_CHECKING(if setresuid seems to work) |
789 | AC_TRY_RUN([ | ||
789 | #include <stdlib.h> | 790 | #include <stdlib.h> |
790 | #include <errno.h> | 791 | #include <errno.h> |
791 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | 792 | int main(){errno=0; setresuid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} |
792 | ], | 793 | ], |
793 | [AC_MSG_RESULT(yes)], | 794 | [AC_MSG_RESULT(yes)], |
794 | [AC_DEFINE(BROKEN_SETRESUID), | 795 | [AC_DEFINE(BROKEN_SETRESUID), |
795 | AC_MSG_RESULT(not implemented)] | 796 | AC_MSG_RESULT(not implemented)] |
796 | ) | 797 | ) |
798 | ]) | ||
797 | 799 | ||
798 | dnl Some platorms have setresgid that isn't implemented | 800 | AC_CHECK_FUNCS(setresgid, [ |
799 | AC_MSG_CHECKING(if setresgid seems to work) | 801 | dnl Some platorms have setresgid that isn't implemented, test for this |
800 | AC_TRY_RUN([ | 802 | AC_MSG_CHECKING(if setresgid seems to work) |
803 | AC_TRY_RUN([ | ||
801 | #include <stdlib.h> | 804 | #include <stdlib.h> |
802 | #include <errno.h> | 805 | #include <errno.h> |
803 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} | 806 | int main(){errno=0; setresgid(0,0,0); if (errno==ENOSYS) exit(1); else exit(0);} |
804 | ], | 807 | ], |
805 | [AC_MSG_RESULT(yes)], | 808 | [AC_MSG_RESULT(yes)], |
806 | [AC_DEFINE(BROKEN_SETRESGID) | 809 | [AC_DEFINE(BROKEN_SETRESGID) |
807 | AC_MSG_RESULT(not implemented)] | 810 | AC_MSG_RESULT(not implemented)] |
808 | ) | 811 | ) |
812 | ]) | ||
809 | 813 | ||
810 | dnl Checks for time functions | 814 | dnl Checks for time functions |
811 | AC_CHECK_FUNCS(gettimeofday time) | 815 | AC_CHECK_FUNCS(gettimeofday time) |