Your message dated Sun, 13 Aug 2006 22:02:11 -0700
with message-id <[EMAIL PROTECTED]>
and subject line Bug#377449: fixed in swapspace 1.8-2
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: swapspace
Version: 1.6-1
Severity: important
Tags: patch


Installed the swapspace package but it failed to start, complaining of a
parse error in /proc/meminfo.  After examining the situation, I
discovered that one of the entries in my /proc/meminfo had an embedded
space in the entry name.  The attached patch fixes the problem by
modifying the sscanf call to look for "%[^:]: " instead of "%s " for the
first field in each /proc/meminfo line.

-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing')
Architecture: i386 (i686)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.6.17-mm4
Locale: LANG=en_US, LC_CTYPE=en_US (charmap=ANSI_X3.4-1968) (ignored: LC_ALL 
set to C)

Versions of packages swapspace depends on:
ii  libc6                         2.3.6-15   GNU C Library: Shared libraries

swapspace recommends no packages.

-- no debconf information
diff -ur swapspace-1.6/src/memory.c swapspace-1.6-patched/src/memory.c
--- swapspace-1.6/src/memory.c	2006-06-15 05:01:50.000000000 -0400
+++ swapspace-1.6-patched/src/memory.c	2006-07-08 23:32:27.000000000 -0400
@@ -115,7 +115,7 @@
 
   char fact[20];
   const int x = sscanf(localbuf,
-      "%s %lld %19s",
+      "%[^:]: %lld %19s",
       result->entry,
       &result->value,
       fact);
@@ -212,31 +212,31 @@
   switch (inf->entry[0])
   {
   case 'B':
-    if (strcmp(inf->entry, "Buffers:")==0)         st->Buffers = inf->value;
+    if (strcmp(inf->entry, "Buffers")==0)         st->Buffers = inf->value;
     break;
   case 'C':
-    if (strcmp(inf->entry, "Cached:")==0)          st->Cached = inf->value;
+    if (strcmp(inf->entry, "Cached")==0)          st->Cached = inf->value;
     break;
   case 'D':
-    if (strcmp(inf->entry, "Dirty:")==0)           st->Dirty = inf->value;
+    if (strcmp(inf->entry, "Dirty")==0)           st->Dirty = inf->value;
     break;
   case 'M':
     if (strncmp(inf->entry,"Mem",3) == 0)
     {
-      if (strcmp(inf->entry+3, "Total:")==0)       st->MemTotal = inf->value;
-      else if (strcmp(inf->entry+3, "Free:")==0)   st->MemFree = inf->value;
+      if (strcmp(inf->entry+3, "Total")==0)       st->MemTotal = inf->value;
+      else if (strcmp(inf->entry+3, "Free")==0)   st->MemFree = inf->value;
     }
     break;
   case 'S':
     if (strncmp(inf->entry,"Swap",4) == 0)
     {
-      if (strcmp(inf->entry+4, "Total:")==0)       st->SwapTotal = inf->value;
-      else if (strcmp(inf->entry+4, "Free:")==0)   st->SwapFree = inf->value;
-      else if (strcmp(inf->entry+4, "Cached:")==0) st->SwapCached = inf->value;
+      if (strcmp(inf->entry+4, "Total")==0)       st->SwapTotal = inf->value;
+      else if (strcmp(inf->entry+4, "Free")==0)   st->SwapFree = inf->value;
+      else if (strcmp(inf->entry+4, "Cached")==0) st->SwapCached = inf->value;
     }
     break;
   case 'W':
-    if (strcmp(inf->entry,"Writeback:")==0)        st->Writeback = inf->value;
+    if (strcmp(inf->entry,"Writeback")==0)        st->Writeback = inf->value;
     break;
   }
 }

--- End Message ---
--- Begin Message ---
Source: swapspace
Source-Version: 1.8-2

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

swapspace_1.8-2.diff.gz
  to pool/main/s/swapspace/swapspace_1.8-2.diff.gz
swapspace_1.8-2.dsc
  to pool/main/s/swapspace/swapspace_1.8-2.dsc
swapspace_1.8-2_i386.deb
  to pool/main/s/swapspace/swapspace_1.8-2_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.
Anibal Monsalve Salazar <[EMAIL PROTECTED]> (supplier of updated swapspace 
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: Mon, 14 Aug 2006 14:24:21 +1000
Source: swapspace
Binary: swapspace
Architecture: source i386
Version: 1.8-2
Distribution: unstable
Urgency: low
Maintainer: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Changed-By: Anibal Monsalve Salazar <[EMAIL PROTECTED]>
Description: 
 swapspace  - Dynamic swap space manager
Closes: 377449
Changes: 
 swapspace (1.8-2) unstable; urgency=low
 .
   * Applied patch from upstream author to deal with the format of
     /proc/meminfo when it doesn't end with a unit, like "kB".
     Closes: #377449.
Files: 
 64b710df45e673bebd1d410c419e72ce 568 admin optional swapspace_1.8-2.dsc
 97a91d4f9f378aeec9536b57335755e4 4170 admin optional swapspace_1.8-2.diff.gz
 aa6adf2bf2c2cd2b92ac412c299ea19c 27982 admin optional swapspace_1.8-2_i386.deb

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

iD8DBQFE4AHCipBneRiAKDwRAkL5AJ9sL6/Pvhnch9WvrCckUipv+fIobwCePxgR
S9rX514xIbLBexrpWwaJIO8=
=4wlW
-----END PGP SIGNATURE-----


--- End Message ---

Reply via email to