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

Reply or subscribe to this bug.

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


Report forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#359125; Package wwwconfig-common. (full text, mbox, link).


Acknowledgement sent to Anand Kumria <[email protected]>:
New Bug report received and forwarded. Copy sent to Ola Lundqvist <[email protected]>. (full text, mbox, link).


Message #5 received at [email protected] (full text, mbox, reply):

From: Anand Kumria <[email protected]>
To: Debian Bug Tracking System <[email protected]>
Subject: wwwconfig-common: pgsql-exec.sh fails to detect failure
Date: Mon, 27 Mar 2006 05:10:58 +1100
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.

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



Information forwarded to [email protected], Ola Lundqvist <[email protected]>:
Bug#359125; Package wwwconfig-common. (full text, mbox, link).


Acknowledgement sent to [email protected]:
Extra info received and forwarded to list. Copy sent to Ola Lundqvist <[email protected]>. (full text, mbox, link).


Message #10 received at [email protected] (full text, mbox, reply):

From: Ola Lundqvist <[email protected]>
To: Anand Kumria <[email protected]>, [email protected]
Subject: Re: Bug#359125: wwwconfig-common: pgsql-exec.sh fails to detect failure
Date: Mon, 27 Mar 2006 06:56:30 +0200
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 09:52:24 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.