[Top][All Lists]

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

[bug #46784] frcode drops last char if no final newline

From: Andreas Metzler
Subject: [bug #46784] frcode drops last char if no final newline
Date: Thu, 31 Dec 2015 13:25:09 +0000
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:44.0) Gecko/20100101 Firefox/44.0 Iceweasel/44.0


                 Summary: frcode drops last char if no final newline
                 Project: findutils
            Submitted by: ametzler
            Submitted on: Do 31 Dez 2015 14:25:08 CET
                Category: updatedb
                Severity: 3 - Normal
              Item Group: None
                  Status: None
                 Privacy: Public
             Assigned to: None
         Originator Name: 
        Originator Email: 
             Open/Closed: Open
         Discussion Lock: Any
                 Release: 4.4.2
           Fixed Release: None




this is https://bugs.debian.org/567578 submitted by Kevin Ryde:

If the input to frcode doesn't have a final newline before end of file,
it drops the last char of the last filename.  Eg.

    echo -n /some/file | /usr/lib/locate/frcode >/tmp/foo.locatedb
    locate -d /tmp/foo.locatedb ''



where I expected it to be "/some/file".

No doubt it's a case of "don't do that", but it should be easy for
frcode to be more careful in its reading.


Reply to this item at:


  Nachricht gesendet von/durch Savannah

reply via email to

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