Bug 817539 - authconfig doesn't return non-zero on invalid args
Summary: authconfig doesn't return non-zero on invalid args
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: authconfig
Version: 17
Hardware: Unspecified
OS: Unspecified
unspecified
unspecified
Target Milestone: ---
Assignee: Tomas Mraz
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks:
TreeView+ depends on / blocked
 
Reported: 2012-04-30 12:37 UTC by Stef Walter
Modified: 2012-08-15 16:11 UTC (History)
1 user (show)

Fixed In Version:
Doc Type: Bug Fix
Doc Text:
Clone Of:
Environment:
Last Closed: 2012-08-15 16:11:31 UTC
Type: Bug
Embargoed:


Attachments (Terms of Use)

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


Note You need to log in before you can comment on or make changes to this bug.