Bug 15883

Summary: chage doesn't understand YYYY-MM-DD format - contrary to man page
Product: [Retired] Red Hat Linux Reporter: John Dalbec <jpdalbec>
Component: shadow-utilsAssignee: Bernhard Rosenkraenzer <bero>
Status: CLOSED RAWHIDE QA Contact:
Severity: medium Docs Contact:
Priority: medium    
Version: 6.2   
Target Milestone: ---   
Target Release: ---   
Hardware: All   
OS: Linux   
Whiteboard:
Fixed In Version: Doc Type: Bug Fix
Doc Text:
Story Points: ---
Clone Of: Environment:
Last Closed: 2000-08-09 19:07:12 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:

Description John Dalbec 2000-08-09 19:07:10 UTC
According to the man page, chage should understand dates in the format YYYY-MM-DD.
This does not appear to work.  Instead, chage interprets YYYY-MM-DD to mean YYYY days since the epoch.
MM and DD are ignored.  However, YYYY/MM/DD works fine.  I have observed this only on the S/390 platform,
but the source only looks for a date if it has a "/" in it.
You could (a) fix chage to look for dates with hyphens
or (b) fix the man page to say YYYY/MM/DD.
Thanks,
John

Comment 1 Bernhard Rosenkraenzer 2000-08-30 13:33:10 UTC
Fixed in 20000826-2.