bug-gnu-utils
[Top][All Lists]
Advanced

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

Re: findutils


From: Dan D Niles
Subject: Re: findutils
Date: Tue, 7 Nov 2000 12:52:22 -0600 (CST)

I took a look at the source code for findutils 4.1.6.  It does not
appear that the bug is fixed.  Here is the patch for version 4.1.
You should be able to apply it manually if necessary.  Let me know
if you have any questions.

Dan


--- locate.c.orig       Wed Nov  1 11:16:18 2000
+++ locate.c    Wed Nov  1 11:26:59 2000
@@ -267,7 +267,15 @@
       else
        {
          if (c == LOCATEDB_ESCAPE)
-           count += get_short (fp);
+         {
+           /* Modified to not dump core on really long paths
+            * Dan D Niles 11/1/00 */
+           c = get_short (fp);
+           if (c > 32767)
+             count += c - 65536;
+           else
+             count += c;
+         }
          else if (c > 127)
            count += c - 256;
          else

Kevin Dalley writes:
 > Thanks for your comment.
 > 
 > First take a look at the latest alpha release of findutils at
 > ftp://alpha.gnu.org/gnu.
 > Sooner or later, I will get a real release out the door.
 > 
 > Dan D Niles <address@hidden> writes:
 > 
 > > I found and fixed a bug in findutils 4.1.  Locate core dumps where there
 > > are really long path names.
 > > 
 > > Who do I send the patch to?
 > > 
 > > Dan
 > > 
 > > _______________________________________________
 > > Bug-gnu-utils mailing list
 > > address@hidden
 > > http://mail.gnu.org/mailman/listinfo/bug-gnu-utils
 > > 
 > 
 > -- 
 > Kevin Dalley
 > address@hidden



reply via email to

[Prev in Thread] Current Thread [Next in Thread]