Your message dated Tue, 16 May 2006 06:32:30 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#367489: fixed in sysrqd 6-1
has caused the attached Bug report 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 I am
talking about this indicates a serious mail system misconfiguration
somewhere. Please contact me immediately.)
Debian bug tracking system administrator
(administrator, Debian Bugs database)
--- Begin Message ---
Package: sysrqd
Version: 5-1
Severity: normal
Tags: patch
sysrqd.c only writes the first 4 digits of the pid into
/var/run/sysrqd.pid. pids on my system are currently around 22500...
The attached patch corrects that and even simplifies code.
-- System Information:
Debian Release: testing/unstable
APT prefers unstable
APT policy: (500, 'unstable'), (1, 'experimental')
Architecture: i386 (i686)
Shell: /bin/sh linked to /bin/bash
Kernel: Linux 2.6.16.14
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8)
Versions of packages sysrqd depends on:
ii libc6 2.3.6-7 GNU C Library: Shared libraries
sysrqd recommends no packages.
-- no debconf information
--- sysrqd.c-orig 2006-05-01 02:58:25.000000000 -0700
+++ sysrqd.c 2006-05-16 04:23:55.000000000 -0700
@@ -194,17 +194,12 @@
int
write_pidfile(pid_t pid)
{
- int pidfile;
- char pidstr[5];
-
- if(!(pidfile = open (PID_FILE, O_WRONLY|O_TRUNC|O_CREAT, 0644)))
+ FILE *pidf = fopen(PID_FILE, "w");
+ if (pidf == NULL)
return 1;
-
- snprintf(pidstr, 5, "%d", pid);
-
- write (pidfile, pidstr, sizeof (pidstr));
- close(pidfile);
+ fprintf(pidf, "%d\n", pid);
+ fclose(pidf);
return 0;
}
--- End Message ---
--- Begin Message ---
Source: sysrqd
Source-Version: 6-1
We believe that the bug you reported is fixed in the latest version of
sysrqd, which is due to be installed in the Debian FTP archive:
sysrqd_6-1.diff.gz
to pool/main/s/sysrqd/sysrqd_6-1.diff.gz
sysrqd_6-1.dsc
to pool/main/s/sysrqd/sysrqd_6-1.dsc
sysrqd_6-1_i386.deb
to pool/main/s/sysrqd/sysrqd_6-1_i386.deb
sysrqd_6.orig.tar.gz
to pool/main/s/sysrqd/sysrqd_6.orig.tar.gz
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.
Julien Danjou <[EMAIL PROTECTED]> (supplier of updated sysrqd 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: SHA1
Format: 1.7
Date: Tue, 16 May 2006 15:20:15 +0200
Source: sysrqd
Binary: sysrqd
Architecture: source i386
Version: 6-1
Distribution: unstable
Urgency: low
Maintainer: Julien Danjou <[EMAIL PROTECTED]>
Changed-By: Julien Danjou <[EMAIL PROTECTED]>
Description:
sysrqd - small daemon intended to manage Linux SysRq over network
Closes: 367489 367490 367492
Changes:
sysrqd (6-1) unstable; urgency=low
.
* New upstream release
- Fix error with pidfile (Closes: #367489)
* Port number is now 880, and documented in README.Debian (Closes: #367492)
* Fix init.d script (Closes: #367490)
* Bump standards version
Files:
f058f1cc6570ed6ab1b4abdd81b3c6b9 541 admin optional sysrqd_6-1.dsc
7f661faeef049814b5ff12232e20a66f 3490 admin optional sysrqd_6.orig.tar.gz
510fedf4a29c704d1cfd524105900711 2392 admin optional sysrqd_6-1.diff.gz
f223bd59a6959120341a371da4167745 6616 admin optional sysrqd_6-1_i386.deb
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.3 (GNU/Linux)
iD8DBQFEadHDpGK1HsL+5c0RAqa2AJ9u8yIq+JDV06xp7IwuYZ7FvGVQ2QCfUgxW
Fs/r2YWXqAKHuX3Yhd3KBNU=
=UBBY
-----END PGP SIGNATURE-----
--- End Message ---