From f808842e76f359dfa75cfa82beff0c79d0dde6a0 Mon Sep 17 00:00:00 2001 From: agc Date: Fri, 14 Jul 2000 08:59:36 +0000 Subject: Add a patch so that the 64-bit size (from the stat buffer) is printed using the correct printf-format. From LeRoy Miller (root@gcc.ansic.net) in PR pkg/10478. --- security/tripwire/patches/patch-ad | 20 ++++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 security/tripwire/patches/patch-ad (limited to 'security/tripwire/patches') diff --git a/security/tripwire/patches/patch-ad b/security/tripwire/patches/patch-ad new file mode 100644 index 00000000000..89c420e59de --- /dev/null +++ b/security/tripwire/patches/patch-ad @@ -0,0 +1,20 @@ +$NetBSD: patch-ad,v 1.1 2000/07/14 08:59:37 agc Exp $ + +On NetBSD, st_size is a 64-bit quantity. + +--- src/utils.c 1994/07/25 16:23:16 1.23 ++++ src/utils.c 2000/07/14 08:53:49 +@@ -697,8 +697,13 @@ + + print_perm((uint32)statbuf.st_mode); + ++#if (defined(BSD) && BSD >= 199306) ++ (void) printf(" %-9.9s %7lld %s", owner, statbuf.st_size, ++ a_time + 4); ++#else + (void) printf(" %-9.9s %7d %s", owner, statbuf.st_size, + a_time + 4); ++#endif + printf(" %s\n", name); + + } -- cgit v1.2.3