-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

severity 418430 normal
tags 418430 + patch lfs
thanks

Hi,

I can confirm that adding -D_FILE_OFFSET_BITS=64 to the CFLAGS fixes
the problem.


(trivial) patch attached.

Meanwhile, those interested will find fixed source and i386 binary on

http://clement.hermann.free.fr/debian/ulog-acctd/

Used in production here, seems OK.

I bumped the severity up a bit... We just encountered this bug, and it
is a real problem when you use ulog-acctd for billing (we do have more
than 2Gb log per day).

One could even argue that the severity should be set to grave, as ulog
will stop logging when the log file reaches 2GB, and it could be
considered as a data loss or even a security issue...

Cheers,

- --
Clément Hermann (nodens)
- - "L'air pur ? c'est pas en RL, ça ? c'est pas hors charte ?"
Jean in L'Histoire des Pingouins, http://tnemeth.free.fr/fmbl/linuxsf/

Vous trouverez ma clef publique sur le serveur public pgp.mit.edu.
Please find my public key on the public keyserver pgp.mit.edu.
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.6 (GNU/Linux)
Comment: Using GnuPG with Mozilla - http://enigmail.mozdev.org

iD8DBQFHmiod0yQ2guvROZ0RAhbRAJ95pBhbXtt9jjf/ZZKNK7ukE9MsugCgkxRd
kopZ6ijS7rRYoVIqTtcRKpI=
=wVC3
-----END PGP SIGNATURE-----

#! /bin/sh /usr/share/dpatch/dpatch-run
## 15_file_offset_bits_64.dpatch by  <[EMAIL PROTECTED]>
##
## All lines beginning with `## DP:' are a description of the patch.
## DP: No description.

@DPATCH@
diff -urNad ulog-acctd-0.4.3~/src/Makefile ulog-acctd-0.4.3/src/Makefile
--- ulog-acctd-0.4.3~/src/Makefile      2003-05-07 15:04:27.000000000 +0200
+++ ulog-acctd-0.4.3/src/Makefile       2008-01-25 19:01:36.485579724 +0100
@@ -16,7 +16,7 @@
 # Disable for debugging
 #OPT = -O2
 
-CFLAGS += -Wall -Wstrict-prototypes $(OPT) $(DEBUG) $(KERNELDIR)
+CFLAGS += -Wall -Wstrict-prototypes $(OPT) $(DEBUG) $(KERNELDIR) 
-D_FILE_OFFSET_BITS=64
 OBJECTS = main.o daemon.o process.o utils.o config.o capture.c
 DISTSRC = ChangeLog Makefile capture.c config.c daemon.c main.c ulog-acctd 
ulog-acctd.cf ulog-acct.h process.c utils.c
 LIBS =

Attachment: 15_file_offset_bits_64.dpatch.sig
Description: Binary data

Reply via email to