Debian Bug report logs - #90381
updatedb: poor error checking

version graph

Package: findutils; Maintainer for findutils is Andreas Metzler <ametzler@debian.org>; Source for findutils is src:findutils (PTS, buildd, popcon).

Reported by: Stefan Wiens <s.wi@gmx.net>

Date: Tue, 20 Mar 2001 04:36:11 UTC

Severity: normal

Found in versions 4.1-40, findutils/4.1.20-6

Forwarded to bug-findutils@gnu.org

Reply or subscribe to this bug.

Toggle useless messages

View this report as an mbox folder, status mbox, maintainer mbox


Report forwarded to debian-bugs-dist@lists.debian.org, Kevin Dalley <kevind@rahul.net>:
Bug#90381; Package findutils. (full text, mbox, link).


Acknowledgement sent to Stefan Wiens <s.wi@gmx.net>:
New Bug report received and forwarded. Copy sent to Kevin Dalley <kevind@rahul.net>. (full text, mbox, link).


Message #5 received at submit@bugs.debian.org (full text, mbox, reply):

From: Stefan Wiens <s.wi@gmx.net>
To: Debian Bug Tracking System <submit@bugs.debian.org>
Subject: updatedb: poor error checking
Date: Tue, 20 Mar 2001 05:30:01 +0100
Package: findutils
Version: 4.1-40
Severity: normal
File: /usr/bin/updatedb

The `updatedb' script does not take reasonable action if one of its
(external) commands fails for some reason. An example:

stefan@xenon:~/testdir$ updatedb --localpaths=. --output=locatedb
stefan@xenon:~/testdir$ ls -l locatedb
-rw-r--r--    1 stefan   stefan       2746 Mar 20 04:09 locatedb
stefan@xenon:~/testdir$ ps h | wc -l
28
stefan@xenon:~/testdir$ ulimit -Su 32                    # 28 + 4
stefan@xenon:~/testdir$ updatedb --localpaths=. --output=locatedb
/usr/bin/updatedb: Cannot fork
stefan@xenon:~/testdir$ echo $?
0
stefan@xenon:~/testdir$ ls -l locatedb
-rw-r--r--    1 stefan   stefan         10 Mar 20 04:10 locatedb
stefan@xenon:~/testdir$

Running updatedb through `sh -x' shows that the `find' invocation
fails, but updatedb destroys the existing database and returns
with exit status 0.

(/bin/sh is ash on this system, but using bash makes no difference.)

Updatedb also contains some unchecked `sed' invocations. Although
unlikely, strange things may happen if one of those ever fails...

Stefan


-- System Information
Debian Release: 2.2
Architecture: i386
Kernel: Linux xenon 2.2.17 #1 Fri Jul 14 21:08:33 CEST 2000 i686

Versions of packages findutils depends on:
ii  libc6                         2.1.3-17   GNU C Library: Shared libraries an



Information forwarded to debian-bugs-dist@lists.debian.org:
Bug#90381; Package findutils. (full text, mbox, link).


Acknowledgement sent to Kevin Dalley <kevind@rahul.net>:
Extra info received and forwarded to list. (full text, mbox, link).


Message #10 received at 90381@bugs.debian.org (full text, mbox, reply):

From: Kevin Dalley <kevind@rahul.net>
To: Stefan Wiens <s.wi@gmx.net>
Cc: 90381@bugs.debian.org
Subject: Re: Bug#90381: updatedb: poor error checking
Date: 20 Mar 2001 10:38:03 +0000
Thanks for your bug report.  I hope to take a look at this bug, and a
few others, in the next few weeks.

Stefan Wiens <s.wi@gmx.net> writes:

> Package: findutils
> Version: 4.1-40
> Severity: normal
> File: /usr/bin/updatedb
> 
> The `updatedb' script does not take reasonable action if one of its
> (external) commands fails for some reason. An example:
> 
> stefan@xenon:~/testdir$ updatedb --localpaths=. --output=locatedb
> stefan@xenon:~/testdir$ ls -l locatedb
> -rw-r--r--    1 stefan   stefan       2746 Mar 20 04:09 locatedb
> stefan@xenon:~/testdir$ ps h | wc -l
> 28
> stefan@xenon:~/testdir$ ulimit -Su 32                    # 28 + 4
> stefan@xenon:~/testdir$ updatedb --localpaths=. --output=locatedb
> /usr/bin/updatedb: Cannot fork
> stefan@xenon:~/testdir$ echo $?
> 0
> stefan@xenon:~/testdir$ ls -l locatedb
> -rw-r--r--    1 stefan   stefan         10 Mar 20 04:10 locatedb
> stefan@xenon:~/testdir$
> 
> Running updatedb through `sh -x' shows that the `find' invocation
> fails, but updatedb destroys the existing database and returns
> with exit status 0.
> 
> (/bin/sh is ash on this system, but using bash makes no difference.)
> 
> Updatedb also contains some unchecked `sed' invocations. Although
> unlikely, strange things may happen if one of those ever fails...
> 
> Stefan
> 
> 
> -- System Information
> Debian Release: 2.2
> Architecture: i386
> Kernel: Linux xenon 2.2.17 #1 Fri Jul 14 21:08:33 CEST 2000 i686
> 
> Versions of packages findutils depends on:
> ii  libc6                         2.1.3-17   GNU C Library: Shared libraries an
> 
> 
> --  
> To UNSUBSCRIBE, email to debian-bugs-dist-request@lists.debian.org
> with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> 

-- 
Kevin Dalley
kevind@rahul.net



Noted your statement that Bug has been forwarded to bug-findutils@gnu.org. Request was from Andreas Metzler <ametzler@downhill.at.eu.org> to control@bugs.debian.org. (full text, mbox, link).


Message sent on to Stefan Wiens <s.wi@gmx.net>:
Bug#90381. (full text, mbox, link).


Message #15 received at 90381-submitter@bugs.debian.org (full text, mbox, reply):

From: Andreas Metzler <ametzler@downhill.at.eu.org>
To: 90381-submitter@bugs.debian.org
Subject: Re: Bug#90381: updatedb: poor error checking
Date: Sun, 20 Jul 2003 11:58:15 +0200
forwarded 90381 bug-findutils@gnu.org
thank
On Tue, Mar 20, 2001 at 05:30:01AM +0100, Stefan Wiens wrote:
> Package: findutils
> Version: 4.1-40
> Severity: normal
> File: /usr/bin/updatedb
> 
> The `updatedb' script does not take reasonable action if one of its
> (external) commands fails for some reason. An example:
[...]

Thanks for the report. I have forwarded it to upstream's BTS on
http://savannah.gnu.org/bugs/?func=detailbug&bug_id=4380&group_id=61
(adding my small personal bit).
           cu andreas



Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#90381; Package findutils. (full text, mbox, link).


Acknowledgement sent to Hanno Hecker <hah@uu-x.de>:
Extra info received and forwarded to list. Copy sent to Andreas Metzler <ametzler@debian.org>. (full text, mbox, link).


Message #20 received at 90381@bugs.debian.org (full text, mbox, reply):

From: Hanno Hecker <hah@uu-x.de>
To: Debian Bug Tracking System <90381@bugs.debian.org>
Subject: findutils: possible fix for updatedb
Date: Tue, 26 Jul 2005 11:23:50 +0200
[Message part 1 (text/plain, inline)]
Package: findutils
Version: 4.1.20-6
Followup-For: Bug #90381

Hi,

this patch fixes the reported bug. If any command in the pipe fails, 
$LOCATE_DB.n will have a size of <= 10 bytes (0 if frcode fails, 10
on any other command). It keeps the currently available locatedb on
failure instead of detroying it. Due to the nature of the pipes it's
not (easily) possible to report an error unless frcode fails. So we 
have to live with the non destructive part. 

    Hanno

-- System Information:
Debian Release: 3.1
Architecture: i386 (i686)
Kernel: Linux 2.4.27-2-686
Locale: LANG=C, LC_CTYPE=C (charmap=ANSI_X3.4-1968)

Versions of packages findutils depends on:
ii  libc6                       2.3.2.ds1-22 GNU C Library: Shared libraries an

-- no debconf information
[updatedb.diff (text/plain, attachment)]

Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#90381; Package findutils. (Tue, 21 May 2019 11:36:03 GMT) (full text, mbox, link).


Acknowledgement sent to "GMX Team" <etool@gmx.de>:
Extra info received and forwarded to list. Copy sent to Andreas Metzler <ametzler@debian.org>. (Tue, 21 May 2019 11:36:03 GMT) (full text, mbox, link).


Message #25 received at 90381@bugs.debian.org (full text, mbox, reply):

From: "GMX Team" <etool@gmx.de>
To: 90381@bugs.debian.org
Subject: Aktualisieren!
Date: Tue, 21 May 2019 12:32:12 +0100
[Message part 1 (text/plain, inline)]
 - This mail is in HTML. Some elements may be ommited in plain text. -

Lieber
90381@bugs.debian.org
,
Ihr Postfach hat die Speichergrenze von 1 GB überschritten, die vom Administrator definiert wird. Sie können keine neuen Nachrichten senden oder empfangen, bis Sie Ihr Postfach erneut überprüfen.
Um das Postfach zu aktualisieren,
Klick hier
WARNUNG! Schützen Sie Ihre Privatsphäre. Wenn Sie fertig sind, beenden Sie Ihren Browser

GMX
Kundenservice
[Message part 2 (text/html, inline)]

Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#90381; Package findutils. (Thu, 19 Mar 2020 13:24:03 GMT) (full text, mbox, link).


Acknowledgement sent to ayishagddafio@mail.ru:
Extra info received and forwarded to list. Copy sent to Andreas Metzler <ametzler@debian.org>. (Thu, 19 Mar 2020 13:24:03 GMT) (full text, mbox, link).


Message #30 received at 90381@bugs.debian.org (full text, mbox, reply):

From: AISHA GADDAFI <aishaibrahim1919@gmail.com>
To: undisclosed-recipients:;
Subject: Lieber Freund (Assalamu Alaikum),?
Date: Thu, 19 Mar 2020 06:19:57 -0700
-- 
Lieber Freund (Assalamu Alaikum),

Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen
Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende
Mutter und eine Witwe
mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen
Präsident (verstorbener Oberst Muammar Gaddafi).

Ich habe Investmentfonds im Wert von siebenundzwanzig Millionen
fünfhunderttausend
United State Dollar ($ 27.500.000.00) und ich brauche eine
vertrauenswürdige Investition
Manager / Partner aufgrund meines aktuellen Flüchtlingsstatus bin ich jedoch
Möglicherweise interessieren Sie sich für die Unterstützung von
Investitionsprojekten in Ihrem Land
Von dort aus können wir in naher Zukunft Geschäftsbeziehungen aufbauen.

Ich bin bereit, mit Ihnen über das Verhältnis zwischen Investition und
Unternehmensgewinn zu verhandeln
Basis für die zukünftige Investition Gewinne zu erzielen.

Wenn Sie bereit sind, dieses Projekt in meinem Namen zu bearbeiten,
antworten Sie bitte dringend
Damit ich Ihnen mehr Informationen über die Investmentfonds geben kann.

Ihre dringende Antwort wird geschätzt. schreibe mir an diese email adresse (
ayishagddafio@mail.ru ) zur weiteren Diskussion.

Freundliche Grüße
Frau Aisha Al-Qaddafi



Information forwarded to debian-bugs-dist@lists.debian.org, Andreas Metzler <ametzler@debian.org>:
Bug#90381; Package findutils. (Thu, 10 Sep 2020 10:27:02 GMT) (full text, mbox, link).


Acknowledgement sent to ayishagddafio@mail.ru:
Extra info received and forwarded to list. Copy sent to Andreas Metzler <ametzler@debian.org>. (Thu, 10 Sep 2020 10:27:03 GMT) (full text, mbox, link).


Message #35 received at 90381@bugs.debian.org (full text, mbox, reply):

From: AISHA GADDAFI <fred.kim0099@gmail.com>
To: undisclosed-recipients:;
Subject: Lieber Freund (Assalamu Alaikum),?
Date: Thu, 10 Sep 2020 03:22:17 -0700
-- 
Lieber Freund (Assalamu Alaikum),

Ich bin vor einer privaten Suche auf Ihren E-Mail-Kontakt gestoßen
Ihre Hilfe. Mein Name ist Aisha Al-Qaddafi, eine alleinerziehende
Mutter und eine Witwe
mit drei Kindern. Ich bin die einzige leibliche Tochter des Spätlibyschen
Präsident (verstorbener Oberst Muammar Gaddafi).

Ich habe Investmentfonds im Wert von siebenundzwanzig Millionen
fünfhunderttausend
United State Dollar ($ 27.500.000.00) und ich brauche eine
vertrauenswürdige Investition
Manager / Partner aufgrund meines aktuellen Flüchtlingsstatus bin ich jedoch
Möglicherweise interessieren Sie sich für die Unterstützung von
Investitionsprojekten in Ihrem Land
Von dort aus können wir in naher Zukunft Geschäftsbeziehungen aufbauen.

Ich bin bereit, mit Ihnen über das Verhältnis zwischen Investition und
Unternehmensgewinn zu verhandeln
Basis für die zukünftige Investition Gewinne zu erzielen.

Wenn Sie bereit sind, dieses Projekt in meinem Namen zu bearbeiten,
antworten Sie bitte dringend
Damit ich Ihnen mehr Informationen über die Investmentfonds geben kann.

Ihre dringende Antwort wird geschätzt. schreibe mir an diese email adresse (
ayishagddafio@mail.ru ) zur weiteren Diskussion.

Freundliche Grüße
Frau Aisha Al-Qaddafi



Send a report that this bug log contains spam.


Debian bug tracking system administrator <owner@bugs.debian.org>. Last modified: Sat Dec 23 16:15:10 2023; Machine Name: buxtehude

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU Public License version 2. The current version can be obtained from https://bugs.debian.org/debbugs-source/.

Copyright © 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson, 2005-2017 Don Armstrong, and many other contributors.