summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTim Rice <tim@multitalents.net>2001-03-11 17:32:12 -0800
committerTim Rice <tim@multitalents.net>2001-03-11 17:32:12 -0800
commitbee3f2224c75adfaa2276f6cc83d2f25a0a5af77 (patch)
tree1ee1bdefc768687ba2e99be9750326aa1c7768f5
parentca0bf57f2f336af8663a98bd9e55e0fa2f9e4b08 (diff)
test if snprintf() supports %ll
add /dev to search path for PRNGD/EGD socket fix my mistake in USER_PATH test program
-rw-r--r--ChangeLog6
-rw-r--r--configure.in33
2 files changed, 35 insertions, 4 deletions
diff --git a/ChangeLog b/ChangeLog
index 13ce9c9e..bbb12985 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -17,6 +17,10 @@
- deraadt@cvs.openbsd.org 2001/03/11 16:39:03
[ssh-keygen.c]
KNF, and SHA1 binary output is just creeping featurism
+ - tim@mindrot.org 2001/03/11 17:29:32 [configure.in]
+ test if snprintf() supports %ll
+ add /dev to search path for PRNGD/EGD socket
+ fix my mistake in USER_PATH test program
20010311
- OpenBSD CVS Sync
@@ -4510,4 +4514,4 @@
- Wrote replacements for strlcpy and mkdtemp
- Released 1.0pre1
-$Id: ChangeLog,v 1.944 2001/03/11 20:08:29 mouring Exp $
+$Id: ChangeLog,v 1.945 2001/03/12 01:32:12 tim Exp $
diff --git a/configure.in b/configure.in
index 9edb6ac6..d31bf1a7 100644
--- a/configure.in
+++ b/configure.in
@@ -1,4 +1,4 @@
-# $Id: configure.in,v 1.263 2001/03/10 21:50:45 tim Exp $
+# $Id: configure.in,v 1.264 2001/03/12 01:32:12 tim Exp $
AC_INIT(ssh.c)
@@ -1060,6 +1060,34 @@ if test "x$ac_cv_have_int64_t" = "xno" -a \
"x$ac_cv_sizeof_long_int" != "x8" -a \
"x$ac_cv_sizeof_long_long_int" = "x0" ; then
NO_SFTP='#'
+else
+dnl test snprintf (broken on SCO w/gcc)
+ AC_TRY_RUN(
+ [
+#include <stdio.h>
+#include <string.h>
+#ifdef HAVE_SNPRINTF
+main()
+{
+ char buf[50];
+ char expected_out[50];
+ int mazsize = 50 ;
+#if (SIZEOF_LONG_INT == 8)
+ long int num = 0x7fffffffffffffff;
+#else
+ long long num = 0x7fffffffffffffff;
+#endif
+ strcpy(expected_out, "9223372036854775807");
+ snprintf(buf, mazsize, "%lld", num);
+ if(strcmp(buf, expected_out) != 0)
+ exit(1);
+ exit(0);
+}
+#else
+main() { exit(0); }
+#endif
+ ], [ true ], [ AC_DEFINE(BROKEN_SNPRINTF) ]
+ )
fi
AC_SUBST(NO_SFTP)
@@ -1292,7 +1320,7 @@ AC_ARG_WITH(prngd-socket,
if test -z "$RANDOM_POOL" ; then
AC_MSG_CHECKING(for PRNGD/EGD socket)
# Insert other locations here
- for sock in /var/run/egd-pool /etc/entropy; do
+ for sock in /var/run/egd-pool /dev/egd-pool /etc/entropy; do
if test -r $sock && $TEST_MINUS_S_SH -c "test -S $sock -o -p $sock" ; then
PRNGD_SOCKET="$sock"
AC_DEFINE_UNQUOTED(PRNGD_SOCKET, "$PRNGD_SOCKET")
@@ -1427,7 +1455,6 @@ AC_ARG_WITH(default-path,
[
/* find out what STDPATH is */
#include <stdio.h>
-#include "config.h"
#ifdef HAVE_PATHS_H
# include <paths.h>
#endif