Bug 817539

Summary: authconfig doesn't return non-zero on invalid args
Product: [Fedora] Fedora Reporter: Stef Walter <stefw>
Component: authconfigAssignee: Tomas Mraz <tmraz>
Status: CLOSED RAWHIDE QA Contact: Fedora Extras Quality Assurance <extras-qa>
Severity: unspecified Docs Contact:
Priority: unspecified    
Version: 17CC: tmraz
Target Milestone: ---   
Target Release: ---   
Hardware: Unspecified   
OS: Unspecified   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-08-15 16:11:31 UTC Type: Bug
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:

Description Stef Walter 2012-04-30 12:37:31 UTC
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

How reproducible:

Every time

Steps to Reproduce:

# authconfig --enablewinbind
# echo $?

Actual results:

Above command hash zero exit code.

Expected results:

Should have a non-zero exit code.

Comment 1 Tomas Mraz 2012-04-30 13:22:56 UTC
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.

Comment 2 Stef Walter 2012-04-30 15:30:11 UTC
Thanks.

Comment 3 Stef Walter 2012-08-15 16:11:31 UTC
This looks liked in authconfig-6.2.3