Your message dated Fri, 15 Dec 2006 04:32:02 +0000
with message-id <[EMAIL PROTECTED]>
and subject line Bug#403099: fixed in bwm-ng 0.5-4
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: bwm-ng
Version: 0.5-3
Severity: normal
Tags: patch

This happens because of line 285 in src/options.c:


snprintf(str,strlen(pwd_entry->pw_dir)+13,"%s/.bwm-ng.conf",pwd_entry->pw_dir);


As snprintf do not write more than size bytes including the trailing '\0' and 
length of "/.bwm-ng.conf" is 13 characters, the last character is lost.
Attached trivial patch changes this to fit the last character.


-- System Information:
Debian Release: 4.0
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.18.2
Locale: LANG=pl_PL, LC_CTYPE=pl_PL (charmap=ISO-8859-2)

Versions of packages bwm-ng depends on:
ii  libc6                        2.3.6.ds1-8 GNU C Library: Shared libraries
ii  libncurses5                  5.5-5       Shared libraries for terminal hand
ii  libstatgrab6                 0.13-1      library being useful interface to 

bwm-ng recommends no packages.

-- no debconf information
diff -urN bwm-ng-0.5.orig/src/options.c bwm-ng-0.5/src/options.c
--- bwm-ng-0.5.orig/src/options.c       2005-02-19 20:58:46.000000000 +0100
+++ bwm-ng-0.5/src/options.c    2006-12-14 17:25:57.000000000 +0100
@@ -282,7 +282,7 @@
         pwd_entry=getpwuid(getuid());
         if (pwd_entry!=NULL) {
             str=(char*)malloc(strlen(pwd_entry->pw_dir)+14);
-            
snprintf(str,strlen(pwd_entry->pw_dir)+13,"%s/.bwm-ng.conf",pwd_entry->pw_dir);
+            
snprintf(str,strlen(pwd_entry->pw_dir)+14,"%s/.bwm-ng.conf",pwd_entry->pw_dir);
             read_config(str);
             free(str);
         }

--- End Message ---
--- Begin Message ---
Source: bwm-ng
Source-Version: 0.5-4

We believe that the bug you reported is fixed in the latest version of
bwm-ng, which is due to be installed in the Debian FTP archive:

bwm-ng_0.5-4.diff.gz
  to pool/main/b/bwm-ng/bwm-ng_0.5-4.diff.gz
bwm-ng_0.5-4.dsc
  to pool/main/b/bwm-ng/bwm-ng_0.5-4.dsc
bwm-ng_0.5-4_i386.deb
  to pool/main/b/bwm-ng/bwm-ng_0.5-4_i386.deb



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.
Damián Viano <[EMAIL PROTECTED]> (supplier of updated bwm-ng 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: Thu, 14 Dec 2006 15:33:59 -0300
Source: bwm-ng
Binary: bwm-ng
Architecture: source i386
Version: 0.5-4
Distribution: unstable
Urgency: medium
Maintainer: Damián Viano <[EMAIL PROTECTED]>
Changed-By: Damián Viano <[EMAIL PROTECTED]>
Description: 
 bwm-ng     - small and simple console-based bandwidth monitor
Closes: 403099
Changes: 
 bwm-ng (0.5-4) unstable; urgency=medium
 .
   * Added patches/03use_bwm-ng.conf_not_.con.dpatch patch to correctly
     use ~/.bwm-ng.conf instead of ~/.bwm-ng.con.  Thanks to Rafal Krypa for
     the report and the initial patch (Closes: #403099)
   * Added patches/02bwm-ng.conf-example_typo.dpatch to fix small typo, hinted
     by upstream.
Files: 
 644d81f73069a7d90fb45a387100324c 596 net optional bwm-ng_0.5-4.dsc
 7556daa02617007f678b78a5df4e758a 4288 net optional bwm-ng_0.5-4.diff.gz
 a81fb2a2b9acfd6eff0d54fad85c94fd 30882 net optional bwm-ng_0.5-4_i386.deb

-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.5 (GNU/Linux)

iD8DBQFFgiCslAuUx1tI/64RAlvCAJ9D4r3PJ8xDHn03QFzRxbGxaUD/sgCggYFh
LMsep+/Wun7oldE/eBsi1NA=
=O0Bt
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to