Login
[x]
Log in using an account from:
Fedora Account System
Red Hat Associate
Red Hat Customer
Or login using a Red Hat Bugzilla account
Forgot Password
Login:
Hide Forgot
Create an Account
Red Hat Bugzilla – Attachment 916054 Details for
Bug 1116786
system-config-users crashes if /etc/shadow does not exist
[?]
New
Simple Search
Advanced Search
My Links
Browse
Requests
Reports
Current State
Search
Tabular reports
Graphical reports
Duplicates
Other Reports
User Changes
Plotly Reports
Bug Status
Bug Severity
Non-Defaults
|
Product Dashboard
Help
Page Help!
Bug Writing Guidelines
What's new
Browser Support Policy
5.0.4.rh83 Release notes
FAQ
Guides index
User guide
Web Services
Contact
Legal
This site requires JavaScript to be enabled to function correctly, please enable it.
[patch]
bz-1116786.patch
bz-1116786.patch (text/plain), 1.20 KB, created by
Siteshwar Vashisht
on 2014-07-07 12:17:04 UTC
(
hide
)
Description:
bz-1116786.patch
Filename:
MIME Type:
Creator:
Siteshwar Vashisht
Created:
2014-07-07 12:17:04 UTC
Size:
1.20 KB
patch
obsolete
>diff --git a/src/userProperties.py b/src/userProperties.py >index 91fe56f..34bfe09 100644 >--- a/src/userProperties.py >+++ b/src/userProperties.py >@@ -564,7 +564,7 @@ class userProperties: > self.userEnt.set(libuser.SHADOWINACTIVE, int(inactive)) > if forcechange: > self.userEnt.set(libuser.SHADOWLASTCHANGE, [0]) >- elif self.userEnt.get(libuser.SHADOWLASTCHANGE)[0] == 0: >+ elif self.userEnt.get(libuser.SHADOWLASTCHANGE) and self.userEnt.get(libuser.SHADOWLASTCHANGE)[0] == 0: > self.userEnt.set(libuser.SHADOWLASTCHANGE, > [(date.today() - epoch).days]) > else: >@@ -572,7 +572,7 @@ class userProperties: > self.userEnt.set(libuser.SHADOWMAX, self.pwRequireUnset) > self.userEnt.set(libuser.SHADOWWARNING, self.pwWarnUnset) > self.userEnt.set(libuser.SHADOWINACTIVE, self.pwInactiveUnset) >- if self.userEnt.get(libuser.SHADOWLASTCHANGE)[0] == 0: >+ if self.userEnt.get(libuser.SHADOWLASTCHANGE) and self.userEnt.get(libuser.SHADOWLASTCHANGE)[0] == 0: > self.userEnt.set(libuser.SHADOWLASTCHANGE, > (date.today() - epoch).days) >
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 1116786
: 916054