1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33
|
Description: Correct "long" to "time_t"
In addition, make sure the signed 64-bit value is printed as such.
Author: Sven Geuer <sge@debian.org>
Forwarded: not-needed
Last-Update: 2025-09-11
--- a/src/util/cracker.c
+++ b/src/util/cracker.c
@@ -105,11 +105,11 @@
char *fmt;
char *a, *b, *c, *d, *e, *f;
{
- long t;
+ time_t t;
time(&t);
- fprintf(stdout, "%c:%ld:", key, t);
+ fprintf(stdout, "%c:%lld:", key, (long long int)t);
fprintf(stdout, fmt, a, b, c, d, e, f);
fflush(stdout);
--- a/src/libdes/read_pwd.c
+++ b/src/libdes/read_pwd.c
@@ -138,7 +138,8 @@
#endif
#endif
-static void (*savsig[NX509_SIG])();
+/*static void (*savsig[NX509_SIG])();*/
+static __sighandler_t savsig[NX509_SIG];
static jmp_buf save;
int des_read_password(key, prompt, verify)
|