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

Bug#207585: marked as done (dbmmanage uses ps incorrectly)

Your message dated Thu, 4 Sep 2003 12:46:28 +0200 (CEST)
with message-id <Pine.LNX.4.56.0309041235350.30062@trider-g7.ext.fabbione.net>
and subject line (no subject)
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)

Received: (at submit) by bugs.debian.org; 28 Aug 2003 03:53:44 +0000
>From albert@users.sf.net Wed Aug 27 22:53:29 2003
Return-path: <albert@users.sf.net>
Received: from rwcrmhc12.comcast.net [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19sDqh-000730-00; Wed, 27 Aug 2003 22:53:27 -0500
Received: from c-66-176-206-178.se.client2.attbi.com ([])
          by comcast.net (rwcrmhc12) with SMTP
          id <2003082803390501400r571de>; Thu, 28 Aug 2003 03:39:06 +0000
Subject: dbmmanage uses ps incorrectly
From: Albert Cahalan <albert@users.sf.net>
To: submit@bugs.debian.org
Content-Type: text/plain
Message-Id: <1062041269.805.258.camel@cube>
Mime-Version: 1.0
X-Mailer: Ximian Evolution 1.2.4 
Date: 27 Aug 2003 23:27:50 -0400
Content-Transfer-Encoding: 7bit
Delivered-To: submit@bugs.debian.org
X-Spam-Status: No, hits=-7.0 required=4.0
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (

Package: apache-common

I'm getting bug reports because this package
uses my program incorrectly. Please fix!

There's some dbmmanage program, supposedly in
this package, that has/had a bug. It's about
improper use of the ps command in the script,
causing users to see a warning message. Please
verify that the problem is gone or fix it, and
also forward this bug report to the right
upstream maintainer and other sources of code.

The code, more or less:

    my $psf;
    for (qw(-xlwwa -le)) {
        `ps $_ 2>/dev/null`;   # test option
        $psf = $_, last unless $?;
    srand ( `ps $psf | cksum` );

Variations on this code run the ps output
through gzip instead of cksum.

That qw(-xlwwa -le) line is the problem.
Linux ps parses the -xlwwa using a POSIX
parser, rejects it, discovers that it can
be handled with the "-" removed, prints a
warning, and then continues on. Please
change the qw(-xlwwa -le) to one of these:

qw(-le -xlwaa)
qw(xlwaa -le)

Received: (at 207585-done) by bugs.debian.org; 4 Sep 2003 10:46:34 +0000
>From fabbione@fabbione.net Thu Sep 04 05:46:32 2003
Return-path: <fabbione@fabbione.net>
Received: from port5.ds1-sby.adsl.cybercity.dk (trider-g7.fabbione.net) [] 
	by master.debian.org with esmtp (Exim 3.35 1 (Debian))
	id 19urdG-0007Wv-00; Thu, 04 Sep 2003 05:46:30 -0500
Received: from trider-g7.ext.fabbione.net (port5.ds1-sby.adsl.cybercity.dk [])
	by trider-g7.fabbione.net (Postfix) with ESMTP id 25C7224B;
	Thu,  4 Sep 2003 12:46:29 +0200 (CEST)
Date: Thu, 4 Sep 2003 12:46:28 +0200 (CEST)
From: Fabio Massimo Di Nitto <fabbione@fabbione.net>
Sender: fabbione@trider-g7.ext.fabbione.net
To: 207585-done@bugs.debian.org, 207585-submitter@bugs.debian.org
Message-ID: <Pine.LNX.4.56.0309041235350.30062@trider-g7.ext.fabbione.net>
MIME-Version: 1.0
Content-Type: TEXT/PLAIN; charset=US-ASCII
Delivered-To: 207585-done@bugs.debian.org
X-Spam-Status: No, hits=-3.6 required=4.0
X-Spam-Checker-Version: SpamAssassin 2.53-bugs.debian.org_2003_8_27 (

	I have no idea why you opened a bug against the Debian packages
since the lines you are talking about make no use of (qw(-xlwwa -le))
as you can see yourself, since a couple of years atleast (i have no
reference to this code in earlier packages). Anyway I am closing this bug
since it does not belong to us.

ub genseed {
    my $psf;
    if ($not_unix) {
        srand (time ^ $$ or time ^ ($$ + ($$ << 15)));
    else {
        for (qw(xlwwa le)) {
            `ps $_ 2>/dev/null`;
            $psf = $_, last unless $?;
        srand (time ^ $$ ^ unpack("%L*", `ps $psf | gzip -f`));
    @range = (qw(. /), '0'..'9','a'..'z','A'..'Z');
    $x = int scalar @range;

Our mission: make IPv6 the default IP protocol
"We are on a mission from God" - Elwood Blues


Reply to: