Bug 725073 - Unmodified /etc/login.defs replaced on upgrade, breaking existing systems
Summary: Unmodified /etc/login.defs replaced on upgrade, breaking existing systems
Keywords:
Status: CLOSED RAWHIDE
Alias: None
Product: Fedora
Classification: Fedora
Component: shadow-utils
Version: rawhide
Hardware: Unspecified
OS: Unspecified
unspecified
high
Target Milestone: ---
Assignee: Peter Vrabec
QA Contact: Fedora Extras Quality Assurance
URL:
Whiteboard:
Depends On:
Blocks: 1kAccounts
TreeView+ depends on / blocked
 
Reported: 2011-07-22 18:35 UTC by Miloslav Trmač
Modified: 2011-07-25 13:22 UTC (History)
4 users (show)

Fixed In Version:
Clone Of:
Environment:
Last Closed: 2011-07-25 13:22:26 UTC
Type: ---
Embargoed:


Attachments (Terms of Use)
Preserve unmodified login.defs on upgrade (884.86 KB, patch)
2011-07-22 18:35 UTC, Miloslav Trmač
no flags Details | Diff
Preserve unmodified login.defs on upgrade (1.75 KB, patch)
2011-07-22 18:37 UTC, Miloslav Trmač
no flags Details | Diff

Description Miloslav Trmač 2011-07-22 18:35:54 UTC
Created attachment 514765 [details]
Preserve unmodified login.defs on upgrade

Even with %config(noreplace) the configuration file is replaced when it was not modified by users.  This is correct behavior, but it means that the [GU]ID_MIN change from 500 to 1000 would break existing systems.

The attached patch adds scriptlets that manually preserve the old configuration.  The md5sum value matches the login.defs file shipped in Fedora 1[345].

Comment 1 Miloslav Trmač 2011-07-22 18:37:30 UTC
Created attachment 514766 [details]
Preserve unmodified login.defs on upgrade


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