summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorderaadt <deraadt@openbsd.org>2013-04-16 23:16:19 +0000
committerderaadt <deraadt@openbsd.org>2013-04-16 23:16:19 +0000
commit2c64d94ff8f1de9315ed067df50328bea6a52bd4 (patch)
treeada93c1264841cdce4f79b0cd28e1894d2ddbcb6
parentsync (diff)
downloadwireguard-openbsd-2c64d94ff8f1de9315ed067df50328bea6a52bd4.tar.xz
wireguard-openbsd-2c64d94ff8f1de9315ed067df50328bea6a52bd4.zip
an acceptable time_t truncation (binding cannot take that long)
ok matthew
-rw-r--r--libexec/ld.so/dl_prebind.c8
1 files changed, 6 insertions, 2 deletions
diff --git a/libexec/ld.so/dl_prebind.c b/libexec/ld.so/dl_prebind.c
index b6d0a03c223..3049b51dd66 100644
--- a/libexec/ld.so/dl_prebind.c
+++ b/libexec/ld.so/dl_prebind.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: dl_prebind.c,v 1.10 2010/10/27 19:04:26 deraadt Exp $ */
+/* $OpenBSD: dl_prebind.c,v 1.11 2013/04/16 23:16:19 deraadt Exp $ */
/*
* Copyright (c) 2006 Dale Rahn <drahn@dalerahn.com>
*
@@ -449,7 +449,11 @@ _dl_prebind_post_resolve()
}
buf[6] = '\0';
- _dl_printf("relocation took %d.%s\n", diff_tp.tv_sec, buf);
+ /*
+ * _dl_printf lacks %lld support; therefore assume
+ * relocation takes less than 2^31 seconds
+ */
+ _dl_printf("relocation took %d.%s\n", (int)diff_tp.tv_sec, buf);
}
for (object = _dl_objects; object != NULL; object = object->next)