[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Bug#280356: [patch] possible fix



Hi,

attached is a fix for this problem (also in
michael.vogt@ubuntu.com--2005/apt--fixes--0). It would be nice if you
could check if it solves your problem (it's against the current
apt--main--0 branch).

Thanks,
 Michael

-- 
Linux is not The Answer. Yes is the answer. Linux is The Question. - Neo
* looking for michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-9 to compare with
* comparing to michael.vogt@ubuntu.com--2005/apt--fixes--0--patch-9: .. done.

* modified files

--- orig/apt-pkg/cdrom.cc
+++ mod/apt-pkg/cdrom.cc
@@ -422,6 +422,9 @@
    {      
       F.getline(Buffer,sizeof(Buffer));
       CurLine++;
+      if (F.fail() && !F.eof())
+	 return _error->Error(_("Line %u too long in source list %s."),
+			      CurLine,File.c_str());
       _strtabexpand(Buffer,sizeof(Buffer));
       _strstrip(Buffer);
             



Reply to: