Your message dated Mon, 07 Apr 2014 05:03:38 +0000
with message-id <[email protected]>
and subject line Bug#743301: fixed in faketime 0.9.5-2
has caused the Debian Bug report #743301,
regarding faketime: breaks other programs that set LD_PRELOAD
to be marked as done.
This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.
(NB: If you are a system administrator and have no idea what this
message is talking about, this may indicate a serious mail system
misconfiguration somewhere. Please contact [email protected]
immediately.)
--
743301: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=743301
Debian Bug Tracking System
Contact [email protected] with problems
--- Begin Message ---
Package: faketime
Version: 0.9.5-1
Severity: important
Tags: patch
Hello,
There is logic error in src/faketime.c that causes faketime to damage
the contents of an existing LD_PRELOAD environment variable. The
attached patch fixes it for me:
terceiro@homer:faketime-0.9.5$ dpkg-query --show faketime
faketime 0.9.5-1
terceiro@homer:faketime-0.9.5$ tsocks faketime +1day date
ERROR: ld.so: object '/usr/lib/libtsocks.s' from LD_PRELOAD cannot be
preloaded: ignored.
Seg Mar 31 18:32:01 BRT 2014
terceiro@homer:faketime-0.9.5$ tsocks ./src/faketime +1day date
Ter Abr 1 18:32:05 BRT 2014
-- System Information:
Debian Release: jessie/sid
APT prefers unstable
APT policy: (500, 'unstable'), (500, 'testing'), (1, 'experimental')
Architecture: amd64 (x86_64)
Kernel: Linux 3.13-1-amd64 (SMP w/4 CPU cores)
Locale: LANG=pt_BR.UTF-8, LC_CTYPE=pt_BR.UTF-8 (charmap=UTF-8)
Shell: /bin/sh linked to /bin/dash
Versions of packages eatmydata depends on:
ii libc6 2.18-4
eatmydata recommends no packages.
eatmydata suggests no packages.
-- no debconf information
--
Antonio Terceiro <[email protected]>
Description: fix handling of existing LD_PRELOAD in environment
This patch fixes handling of the string length when composing an updated
LD_PRELOAD that includes both the previous value and the entry for
libeatmydata.
Author: Antonio Terceiro <[email protected]>
--- faketime-0.9.5.orig/src/faketime.c
+++ faketime-0.9.5/src/faketime.c
@@ -311,7 +311,7 @@ int main (int argc, char **argv)
ftpl_path = PREFIX "/$LIB/faketime/libfaketime.so.1";
#endif
}
- len = (ld_preload)?strlen(ld_preload):0 + 2 + strlen(ftpl_path);
+ len = (ld_preload)?strlen(ld_preload) + 2 + strlen(ftpl_path):0;
ld_preload_new = malloc(len);
snprintf(ld_preload_new, len ,"%s%s%s", (ld_preload)?ld_preload:"",
(ld_preload)?":":"", ftpl_path);
signature.asc
Description: Digital signature
--- End Message ---
--- Begin Message ---
Source: faketime
Source-Version: 0.9.5-2
We believe that the bug you reported is fixed in the latest version of
faketime, which is due to be installed in the Debian FTP archive.
A summary of the changes between this version and the previous one is
attached.
Thank you for reporting the bug, which will now be closed. If you
have further comments please address them to [email protected],
and the maintainer will reopen the bug report if appropriate.
Debian distribution maintenance software
pp.
Daniel Kahn Gillmor <[email protected]> (supplier of updated faketime
package)
(This message was generated automatically at their request; if you
believe that there is a problem with it please contact the archive
administrators by mailing [email protected])
-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Format: 1.8
Date: Wed, 02 Apr 2014 09:45:49 -0400
Source: faketime
Binary: faketime libfaketime
Architecture: source amd64
Version: 0.9.5-2
Distribution: unstable
Urgency: medium
Maintainer: Daniel Kahn Gillmor <[email protected]>
Changed-By: Daniel Kahn Gillmor <[email protected]>
Description:
faketime - report faked system time to programs
libfaketime - report faked system time to programs
Closes: 743301
Changes:
faketime (0.9.5-2) unstable; urgency=medium
.
* avoid accidentally truncating LD_PRELOAD. Thanks, Antonio Terceiro
(Closes: #743301)
Checksums-Sha1:
56a3ffe8f21db3b66bea3b42e5490e50114a8abb 2032 faketime_0.9.5-2.dsc
6f8f1b0a54f8e1e93c9e788e40d68ee66d0b94ab 4572 faketime_0.9.5-2.debian.tar.xz
5541625775f1da051105bf18f6ef768a8c40c431 12718 faketime_0.9.5-2_amd64.deb
f28262aeb28afa44e3c9e05186984ecdcd52edd9 23162 libfaketime_0.9.5-2_amd64.deb
Checksums-Sha256:
dc6d1544725505c045c07262386746d3c79eb0e04d059aeb433d9828a7ddd4ea 2032
faketime_0.9.5-2.dsc
03bd763284d1139fce9f061c67ef9cbdacce05a90212993c98cc29f4be4cb537 4572
faketime_0.9.5-2.debian.tar.xz
059a9fbc0cd3d5f379d829744cd5678544181ff11902a7ec4b60ea537f28dc3b 12718
faketime_0.9.5-2_amd64.deb
496d5678dfb6702170db9dce30884058309c3dac2f336a5f50908cec736270fd 23162
libfaketime_0.9.5-2_amd64.deb
Files:
d637acc28c8f5e14547c4b9b8d9051b5 2032 utils extra faketime_0.9.5-2.dsc
56dffab0302d9a57f973bba7f8358e80 4572 utils extra
faketime_0.9.5-2.debian.tar.xz
6a2574fe4769d33264786db20031399b 12718 utils extra faketime_0.9.5-2_amd64.deb
58dba4463412b62ba36a7b1b7b3c499a 23162 utils extra
libfaketime_0.9.5-2_amd64.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1
iQJ8BAEBCgBmBQJTQixBXxSAAAAAAC4AKGlzc3Vlci1mcHJAbm90YXRpb25zLm9w
ZW5wZ3AuZmlmdGhob3JzZW1hbi5uZXRFQjk2OTEyODdBN0FEREUzNzU3RDkxMUVB
NTI0MDFCMTFCRkRGQTVDAAoJEKUkAbEb/fpc+kEQAKFNVVF+raHzLSAKNPgH4EIR
v6+6fjIseZmZo5Mq8TH2q8/0ahdiLzJfIqmQYtXwCIFULA3cp/Z9EzjCfZVSPsZf
QMdtRxI5gwqQBuGk35cm/ZrWsfOhDXpvG3e3/CyY0+ONv4OpV2oeffd8tH7Q9kiD
D5Ao8SOM8qG7oAYb4zyaYaCWMjBFpL/2rf3lvAI6/hehbr9u4fZkvGJwIk+xNc8U
0aEQvwmqOwPdHYrsu1UxJG30JAmMqLADmK6ZW0bitJmbq9yXRtg/4FYHbM8oIE50
EIQA8vCvx5IRzEwzdOYbhVdp4FtQJkCHDWB3poe4wM0Y8oY7sJEw3b8MKDXv2v22
0i2a8Efb5oGPZt4xsJ4jcbe2tOdFSdYNjKMySr/r4cjl66OuaI4+LZ5k7ZAodwQ2
5cP5VHD5sQcYr8q/fYqsZdugN/xIY/ALpagBBJQ2sfAAglii4TJ8gtTrOTWnTlz7
nGmVNkJRIRRtUggPMsGWzZPs2RG/qzVGjvv3eNiE0TKvFYkAAgQE6yJ2gEESuDDm
0SCxzD9UZZjy63ociQ9YnnfieKPOl5h0SJioJ3MZ7/5nABorjKMnehqsQ+fFPb89
pveMtAdCtvCNXtiM45hDYj7aAd8kIGlXkdG5h2Eg8VZvcPF9tHhjX3akzSFciLbS
/Z+6Svdh8P//CScS6vSl
=cb4U
-----END PGP SIGNATURE-----
--- End Message ---