Bug 619150

Summary: faillog executes during argument parsing
Product: Red Hat Enterprise Linux 5 Reporter: Martin Poole <mpoole>
Component: shadow-utilsAssignee: Peter Vrabec <pvrabec>
Status: CLOSED ERRATA QA Contact: Milos Malik <mmalik>
Severity: urgent Docs Contact:
Priority: urgent    
Version: 5.5CC: jwest, mmalik, mvadkert, tao, tmraz
Target Milestone: rcKeywords: ZStream
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2012-02-21 06:16:32 UTC Type: ---
Regression: --- Mount Type: ---
Documentation: --- CRM:
Verified Versions: Category: ---
oVirt Team: --- RHEL 7.3 requirements from Atomic Host:
Cloudforms Team: --- Target Upstream Version:
Embargoed:
Bug Depends On:    
Bug Blocks: 690831    
Attachments:
Description Flags
patch to place execution after argument parsing none

Description Martin Poole 2010-07-28 17:25:06 UTC
Description of problem:

faillog executes options as they are parsed rather than once they have all been gathered

Thus

  faillog -r -u 1234

will reset the fail counter for all users rather than just the named user, whereas

  faillog -u 1234 -r

will reset for just the one user.

Upstream code has rework the code to put the execution of function after the parsing of arguments has completed.

Version-Release number of selected component (if applicable):

shadow-utils-4.0.17-15.el5

Comment 1 Martin Poole 2010-07-28 17:29:46 UTC
Created attachment 435089 [details]
patch to place execution after argument parsing

Comment 7 errata-xmlrpc 2012-02-21 06:16:32 UTC
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-2012-0244.html