+++ This bug was initially created as a clone of Bug #1106413 +++ Description of problem: Check psql wrapper function in /usr/bin/rhcsh, psql command's return value is always return 0. Version-Release number of selected component (if applicable): devenv_4850 How reproducible: Always Steps to Reproduce: 1.Create app, and embed postgresql. 2.Log into this app, run psql command with non-existing file. > psql -f xx; echo $? psql: FATAL: password authentication failed for user "admin1hygbvy" 0 3. Actual results: It always return 0. Expected results: Psql wrapper should return non-zero value when psql command is failed. Additional info:
This issue also reproduced in 2.1.z/2014-05-29.3
This issue has been fixed and verified on the Online: https://bugzilla.redhat.com/show_bug.cgi?id=1106413
Upstream commit: [enterprise-2.1 4b32b39] Bug 1106413: psql wrapper always return zero even if psql command is already failed Author: jhadvig <jhadvig> 1 file changed, 4 insertions(+), 1 deletion(-)
Verified this bug with puddle-2-1-2014-08-01, and PASS. > psql -f xx.conf; echo $? xx.conf: No such file or directory 1
Since the problem described in this bug report should be resolved in a recent advisory, it has been closed with a resolution of ERRATA. For information on the advisory, and where to find the updated files, follow the link below. If the solution does not work for you, open a new bug report. http://rhn.redhat.com/errata/RHBA-2014-1095.html