Bug 11951

Summary: Comply with change date when updating password
Product: Busybox Reporter: Adam <adam.wujek>
Component: Standard ComplianceAssignee: unassigned
Status: RESOLVED FIXED    
Severity: normal CC: adam.wujek, busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: Linux   
Host: Target:
Build:
Attachments: patch to fix this bug

Description Adam 2019-06-06 16:30:47 UTC
Created attachment 8086 [details]
patch to fix this bug

When the function update_passwd is called on a system with a date set to 1st Jan
1970 (like some embedded devices), the change date is set to 0, which has a special meaning:
"The value 0 has a special meaning, which is that the user should change her password the next time she will log in the system."

The attached patch fixes, this behaviour by setting the change date to -1 if called on 1st Jan 1970.
Comment 1 Denys Vlasenko 2019-06-07 10:30:57 UTC
Fixed in git, thanks!