Description of problem: consolehelper always has a zero exit status Version-Release number of selected component (if applicable): RHEL3 (1.68-5) and FC2 (1.70-2) How reproducible: Always Steps to Reproduce: 1. run redhat-config-date or system-config-date 2. Click cancel or repeatedly click OK with no password in dialog 3. echo $? or echo $status Actual results: Always exits with zero Expected results: Should be some way to determine programmatically that the command was not run.
Also, I think, it ought to pass error status through when the command starts, but exits unsuccessfully. That fact that it doesn't is causing me trouble when using redhat-install-packages in a scripting context. To reproduce, try: 1. redhat-install-packages (No arguments!) 2. Enter correct root password and click OK. Result: 1. redhat-install-packages says No Files Specified Please specify files to install 2. Exit status is 0 Expected result: 1. As above. 2. Exit status is 1 (This is what I get if I do 'su -c /usr/sbin/redhat-install-packages')
This bug is reporting the same thing as some others before. But solving this bug would need some redesign of usermode. Usermede uses return codes for reporting its own return status (not return status of its child). We need to return return codes from child instead plus one aditional return code for usermode failure with details in syslog. The change will not be located on one place and might be quite complex. I think it is too big change for an update and suggest to fix that in rawhide instead.
Development Management has reviewed and declined this request. You may appeal this decision by reopening this request.