Red Hat Bugzilla – Bug 817539
authconfig doesn't return non-zero on invalid args
Last modified: 2012-08-15 12:11:31 EDT
Description of problem:
When passed invalid arguments authconfig does not return a non-zero exit code. Returning a zero exit code when not actually successful makes it difficult to use from scripts that need to manage PAM modules.
Version-Release number of selected component (if applicable):
Name : authconfig
Arch : x86_64
Version : 6.2.1
Release : 1.fc17
Size : 1.9 M
Steps to Reproduce:
# authconfig --enablewinbind
# echo $?
Above command hash zero exit code.
Should have a non-zero exit code.
This currently happens only in case the action option is missing. However it is clearly a bug and I fixed it in the upstream repository.
This looks liked in authconfig-6.2.3