Debian Bug report logs - #359125
wwwconfig-common: pgsql-exec.sh fails to detect failure

version graph

Package: wwwconfig-common; Maintainer for wwwconfig-common is Ola Lundqvist <[email protected]>; Source for wwwconfig-common is src:wwwconfig-common (PTS, buildd, popcon).

Reported by: Anand Kumria <[email protected]>

Date: Sun, 26 Mar 2006 18:33:02 UTC

Severity: normal

Found in version wwwconfig-common/0.0.44

Full log


🔗 View this message in rfc822 format

X-Loop: [email protected]
Subject: Bug#359125: wwwconfig-common: pgsql-exec.sh fails to detect failure
Reply-To: [email protected], [email protected]
Resent-From: Ola Lundqvist <[email protected]>
Resent-To: [email protected]
Resent-CC: Ola Lundqvist <[email protected]>
Resent-Date: Mon, 27 Mar 2006 05:03:05 UTC
Resent-Message-ID: <[email protected]>
Resent-Sender: [email protected]
X-Debian-PR-Message: report 359125
X-Debian-PR-Package: wwwconfig-common
X-Debian-PR-Keywords: 
Received: via spool by [email protected] id=B359125.114343539712128
          (code B ref 359125); Mon, 27 Mar 2006 05:03:05 UTC
Received: (at 359125) by bugs.debian.org; 27 Mar 2006 04:56:37 +0000
Received: from c-adt-5.ataco.se ([213.115.168.248] helo=bixbite.opalsys.net)
	by spohr.debian.org with esmtp (Exim 4.50)
	id 1FNjmP-00039T-Ex
	for [email protected]; Sun, 26 Mar 2006 20:56:37 -0800
Received: from ola by bixbite.opalsys.net with local (Exim 4.50)
	id 1FNjmI-0001bU-Aa; Mon, 27 Mar 2006 06:56:30 +0200
Date: Mon, 27 Mar 2006 06:56:30 +0200
From: Ola Lundqvist <[email protected]>
To: Anand Kumria <[email protected]>, [email protected]
Message-ID: <[email protected]>
References: <[email protected]>
Mime-Version: 1.0
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline
In-Reply-To: <[email protected]>
User-Agent: Mutt/1.5.9i
X-Spam-Checker-Version: SpamAssassin 2.60-bugs.debian.org_2005_01_02 
	(1.212-2003-09-23-exp) on spohr.debian.org
X-Spam-Level: 
X-Spam-Status: No, hits=-6.0 required=4.0 tests=BAYES_00,HAS_BUG_NUMBER 
	autolearn=no version=2.60-bugs.debian.org_2005_01_02
Hi

On Mon, Mar 27, 2006 at 05:10:58AM +1100, Anand Kumria wrote:
> Package: wwwconfig-common
> Version: 0.0.44
> Severity: normal
> 
> Hi,
> 
> While debugging a failed installation of Drupal I had to investigate
> pgsql-exec.sh
> 
> Here are the relevant line (I had modified pgsql-exec.sh to not
> redirect /dev/null):
> 
> +++ eval psql -U drupal ''\''-d'\''' ''\''drupal'\''' ''\''-f'\'''
> ''\''/usr/share/drupal/database/database.pgsql'\'''
> ++++ psql -U drupal -d drupal -f /usr/share/drupal/database/database.pgsql
> psql: FATAL:  Ident authentication failed for user "drupal"
> +++ rm -rf /tmp/tmp.r2htGb
> +++ HOME=/home/anand
> ++ status=exec
> 
> psql has clearly failed, yet ther script has returned 'exec'.
> 
> If you try this manually:
> 
> postgres@eve:~$ psql -U drupal -d drupal -f /usr/share/drupal/database/database.pgsql
> psql: FATAL:  Ident authentication failed for user "drupal"
> postgres@eve:~$ echo $?
> 2
> 
> So, pgsql-exec should be checking the return code and indicating
> failure in this case.

I agree. In what way do you think it should indicate failure?

Patch is of course welcome.

Regards,

// Ola

> Thanks,
> Anand
> 
> -- System Information:
> Debian Release: testing/unstable
>   APT prefers testing
>   APT policy: (650, 'testing'), (600, 'unstable')
> Architecture: i386 (i686)
> Shell:  /bin/sh linked to /bin/bash
> Kernel: Linux 2.6.15-1-686
> Locale: LANG=en_AU.UTF-8, LC_CTYPE=en_AU.UTF-8 (charmap=UTF-8)
> 
> -- no debconf information
> 
> 

-- 
 --------------------- Ola Lundqvist ---------------------------
/  [email protected]                     Annebergsslingan 37      \
|  [email protected]                 654 65 KARLSTAD          |
|  +46 (0)54-10 14 30                  +46 (0)70-332 1551       |
|  http://www.opal.dhs.org             UIN/icq: 4912500         |
\  gpg/f.p.: 7090 A92B 18FE 7994 0C36  4FE4 18A1 B1CF 0FE5 3DD9 /
 ---------------------------------------------------------------



Send a report that this bug log contains spam.


Debian bug tracking system administrator <[email protected]>. Last modified: Thu May 15 15:34:50 2025; Machine Name: bembo

Debian Bug tracking system

Debbugs is free software and licensed under the terms of the GNU General 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.