diff options
author | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 23:16:20 +0000 |
---|---|---|
committer | Theo de Raadt <deraadt@cvs.openbsd.org> | 2013-04-16 23:16:20 +0000 |
commit | 3dd883a41d98f47c2ab81ec0dab764905fd05e79 (patch) | |
tree | 2ab018ded2a79042e6876039ee5e80beb9f9d54a /libexec | |
parent | e9ddc515dd1e98cd40611d49b221b02c72f0f33a (diff) |
an acceptable time_t truncation (binding cannot take that long)
ok matthew
Diffstat (limited to 'libexec')
-rw-r--r-- | libexec/ld.so/dl_prebind.c | 8 |
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) |