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 587402 Details for
Bug 825261
redhat-lsb scripts blow away my /etc/nsswitch.conf (also, output during upgrade that shouldn't be displayed)
[?]
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]
spec file fix
redhat-lsb-4.1-4.spec.patch (text/plain), 2.59 KB, created by
Parag Nemade
on 2012-05-29 13:12:36 UTC
(
hide
)
Description:
spec file fix
Filename:
MIME Type:
Creator:
Parag Nemade
Created:
2012-05-29 13:12:36 UTC
Size:
2.59 KB
patch
obsolete
>--- redhat-lsb.orig/redhat-lsb.spec 2012-05-26 14:37:40.079866383 +0800 >+++ redhat-lsb/redhat-lsb.spec 2012-05-29 16:53:21.617372031 +0800 >@@ -43,7 +43,7 @@ > Summary: Implementation of Linux Standard Base specification > Name: redhat-lsb > Version: 4.1 >-Release: 3%{?dist} >+Release: 4%{?dist} > URL: http://www.linuxfoundation.org/collaborate/workgroups/lsb > Source0: https://fedorahosted.org/releases/r/e/redhat-lsb/%{name}-%{version}-%{srcrelease}.tar.bz2 > Patch0: lsb-release-3.1-update-init-functions.patch >@@ -273,7 +273,7 @@ > > Provides: lsb-core-%{archname} = %{version} > Provides: lsb-core-noarch = %{version} >-Obsoletes: redhat-lsb < %{version} >+#Obsoletes: redhat-lsb < %{version} > > %description core > The Linux Standard Base (LSB) Core module support provides the fundamental >@@ -570,15 +570,14 @@ > done > fi > %endif >-if grep '^hosts: \+files \+dns$' /etc/nsswitch.conf;then >- true >-else >- cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf.bak >+if ! grep -s -q '^hosts: \+files \+dns *$' /etc/nsswitch.conf;then >+ cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf.orig > ed -s /etc/nsswitch.conf <<EOF > /^hosts: \+files \+/s/.*/hosts: files dns/ > w > q > EOF >+ cat /etc/nsswitch.conf > %{_datadir}/lsb/nsswitch.conf > fi > > %post >@@ -590,21 +589,25 @@ > done > fi > %endif >-if grep '^hosts: \+files \+dns$' /etc/nsswitch.conf;then >- true >-else >- cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf.bak >- ed -s /etc/nsswitch.conf <<EOF >+if ! grep -s -q '^hosts: \+files \+dns *$' /etc/nsswitch.conf;then >+ cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf.orig >+ ed -s /etc/nsswitch.conf <<EOF > /^hosts: \+files \+/s/.*/hosts: files dns/ > w > q > EOF >+cat /etc/nsswitch.conf >%{_datadir}/lsb/nsswitch.conf > fi > >- > %preun >-cat %{_datadir}/lsb/nsswitch.conf.bak >/etc/nsswitch.conf >-rm -f %{_datadir}/lsb/nsswitch.conf.bak >+if [ $1 -eq 0 ];then >+ if [ -e %{_datadir}/lsb/nsswitch.conf -a -e %{_datadir}/lsb/nsswitch.conf.orig ];then >+ if cmp -s %{_datadir}/lsb/nsswitch.conf /etc/nsswitch.conf;then >+ cat %{_datadir}/lsb/nsswitch.conf.orig >/etc/nsswitch.conf >+ fi >+ rm -f %{_datadir}/lsb/{nsswitch.conf,nsswitch.conf.orig} >+ fi >+fi > > %postun submod-security -p <lua> > os.remove("%{_datadir}/lsb/%{lsbrelver}/submodules") >@@ -720,6 +723,9 @@ > > > %changelog >+* Tue May 29 2012 xning <xning AT redhat DOT com> - 4.1-4 >+- Resolves:rh:#825261: redhat-lsb scripts blow away my /etc/nsswitch.conf >+ > * Wed May 23 2012 Parag <pnemade AT redhat DOT com> - 4.1-3 > - Resolves:rh#824305: Dependency glibc-common%{?_isa} should be changed to glibc-common only >
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 825261
: 587402