Your message dated Sun, 23 Apr 2006 12:49:55 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#362151: findutils: files with newlines in the name break 
locatedb
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: findutils
Version: 4.1.20-6
Severity: normal

$ cat -vet /var/cache/locate/locatedb | dd count=1 2>/dev/null
[EMAIL PROTECTED]@^A           <li>[EMAIL PROTECTED]<font size=1 [EMAIL 
PROTECTED]<ul><td>[EMAIL PROTECTED]@[EMAIL PROTECTED]@M-u<td 
bgcolor=#000000><div align=center><strong><font color=#FFFFFF size=2 [EMAIL 
PROTECTED]@[EMAIL PROTECTED]@M-*<tr valign=top> [EMAIL PROTECTED]@[EMAIL 
PROTECTED]@M-r>[EMAIL PROTECTED]@[EMAIL PROTECTED]@M-u/[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@^C/[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL PROTECTED]@[EMAIL 
PROTECTED]@M-~hos

$ locate /
locate: locate database `/var/cache/locate/locatedb' is corrupt or invalid

The problem is this:

[EMAIL PROTECTED]:/home/jw/temp/pauljackson$ ls -b | grep ' '
areiverinthedesertreview.htm\ target=_self>view\ it<a><font>\ \r\n\ \ \ \ \ \ \ 
\ \ \ \ \ <li>\r\n\ \ \ \ \ \ \ \ \ \ <ul><td>\r\n\ \ \ \ \ \ <tr>\r\n\ \ \ \ \ 
\ <tr\ valign=top>\ \r\n\ \ \ \ \ \ \ \ <td\ bgcolor=#000000><div\ 
align=center><strong><font\ color=#FFFFFF\ size=2\ face=Lucida
neveraloneduetsreview.htm\ target=_self>view\ it<a><font><li>\r\n\ \ \ \ \ \ \ 
\ \ \ <ul><td>\r\n\ \ \ \ \ \ <tr>\r\n\ \ \ \ \ \ <tr\ valign=top>\ \r\n\ \ \ \ 
\ \ \ \ <td\ bgcolor=#000000><div\ align=center><strong><font\ color=#FFFFFF\ 
size=2\ face=Lucida
powerfothestringsreviews.htm\ target=_self>view\ it<a><font><li>\r\n\ \ \ \ \ \ 
\ \ \ \ <ul><td>\r\n\ \ \ \ \ \ <tr>\r\n\ \ \ \ \ \ <tr\ valign=top>\ \r\n\ \ \ 
\ \ \ \ \ <td\ bgcolor=#000000><div\ align=center><strong><font\ color=#FFFFFF\ 
size=2\ face=Lucida
stillsmallvoicematrix.htm\ target=_self>view\ it<a><font><li>\r\n\ \ \ \ \ \ \ 
\ \ \ \ \ <li><font\ size=1\ face=Lucida


Someone's been a bit messy with downloading stuff. However, these *are*
valid linux filenames, and updatedb / locate should be able to handle
them. I now exclude them by adding this to the find expression in
/usr/bin/updatedb :

... -prune -o -name "*
*" -o -print

Perhaps -print0 should be used, with appropriate changes to the sort and
frcode stuff :-)



Paul Slootman


--- End Message ---
--- Begin Message ---
Version: 4.2.27-1

On 2006-04-12 Paul Slootman <[EMAIL PROTECTED]> wrote:
> Package: findutils
> Version: 4.1.20-6
> Severity: normal
[...] 
> $ locate /
> locate: locate database `/var/cache/locate/locatedb' is corrupt or invalid

> The problem is this:

> [EMAIL PROTECTED]:/home/jw/temp/pauljackson$ ls -b | grep ' '
> areiverinthedesertreview.htm\ target=_self>view\ it<a><font>\ \r\n\ \ \ \ \ \ 
> \ \ \ \ \ \ <li>\r\n\ \ \ \ \ \ \ \ \ \ <ul><td>\r\n\ \ \ \ \ \ <tr>\r\n\ \ \ 
> \ \ \ <tr\ valign=top>\ \r\n\ \ \ \ \ \ \ \ <td\ bgcolor=#000000><div\ 
> align=center><strong><font\ color=#FFFFFF\ size=2\ face=Lucida
[...] 

Hello,
thanks, I can reproduce this with 4.1.20-6, by generating a testfile
using

[EMAIL PROTECTED]:/tmp/findtest$ dd if=/dev/null of="`printf 
'areiverinthedesertreview.htm target=_self>view it<a><font> \r\n            
<li>\r\n          <ul><td>\r\n      <tr>\r\n      <tr valign=top> \r\n        
<td bgcolor=#000000><div align=center><strong><font color=#FFFFFF size=2 
face=Lucida'`"

updatedb/locate 4.2.27 handles it fine, closing.
cu andreas
-- 
The 'Galactic Cleaning' policy undertaken by Emperor Zhark is a personal
vision of the emperor's, and its inclusion in this work does not constitute
tacit approval by the author or the publisher for any such projects,
howsoever undertaken.                                (c) Jasper Ffforde

--- End Message ---

Reply via email to