diff options
author | agc <agc@pkgsrc.org> | 2000-07-14 08:59:36 +0000 |
---|---|---|
committer | agc <agc@pkgsrc.org> | 2000-07-14 08:59:36 +0000 |
commit | f808842e76f359dfa75cfa82beff0c79d0dde6a0 (patch) | |
tree | c15ade26eb93d3c31c7295bb531feea3717b8f27 /security | |
parent | 4f5a8b48170d6d2be5c52b12f585de2f88e1491f (diff) | |
download | pkgsrc-f808842e76f359dfa75cfa82beff0c79d0dde6a0.tar.gz |
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.
Diffstat (limited to 'security')
-rw-r--r-- | security/tripwire/files/patch-sum | 3 | ||||
-rw-r--r-- | security/tripwire/patches/patch-ad | 20 |
2 files changed, 22 insertions, 1 deletions
diff --git a/security/tripwire/files/patch-sum b/security/tripwire/files/patch-sum index 1fd97f8c000..55c9e4c009f 100644 --- a/security/tripwire/files/patch-sum +++ b/security/tripwire/files/patch-sum @@ -1,5 +1,6 @@ -$NetBSD: patch-sum,v 1.1 1999/07/09 14:23:05 agc Exp $ +$NetBSD: patch-sum,v 1.2 2000/07/14 08:59:36 agc Exp $ MD5 (patch-aa) = 75655a283aa9a8d4d66e4ce7701eaca7 MD5 (patch-ab) = e18e0e0edd9ec31e4d6e0d202c4be2bb MD5 (patch-ac) = 618e5485afa3ebc81b51b51fc8ccb714 +MD5 (patch-ad) = 01c70c6368277e0eb1a5dad3b4c78055 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); + + } |