Package: alamin-server
Version: 0.3.6-5
Severity: normal
Tags: patch

Strange block of code especially (?) reads only one line from incoming
SMS.

Here's a patch:

--- gsgmdd.old  Wed Apr  6 16:43:55 2005
+++ gsgmdd.new  Wed Apr  6 18:01:14 2005
@@ -910,10 +910,9 @@
       next;
     }
     if ($input_found == 1) {
-# WARNING: Only gets the first line.
+    # We certainly want it whole! And properly linefeeded
       if ($record =~ /\S/) {
-        $table[$counter-1][4] = $record;
-        $input_found = 0;
+        $table[$counter-1][4] .= "$record\n";
       }
       next;
     }







-- System Information
Debian Release: 3.0
Architecture: i386
Kernel: Linux spider 2.4.18 #1 Tue Jan 11 20:42:15 MSK 2005 i686
Locale: LANG=C, LC_CTYPE=C

Versions of packages alamin-server depends on:
ii  libdigest-md5-perl            2.13-2     MD5 Message Digest for Perl
ii  perl                          5.6.1-8.9  Larry Wall's Practical Extraction 
ii  sysklogd                      1.4.1-10   System Logging Daemon
ii  sysklogd [system-log-daemon]  1.4.1-10   System Logging Daemon



-- 
To UNSUBSCRIBE, email to [EMAIL PROTECTED]
with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]

Reply via email to