Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 8172 Details for
Bug 15315
kdm assumes /usr is writable (FHS violation)
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Patch for Xsetup_0
Xsetup_0.patch (text/plain), 1.11 KB, created by
Douglas Pollock
on 2003-02-11 16:48:51 UTC
(
hide
)
Description:
Patch for Xsetup_0
Filename:
MIME Type:
Creator:
Douglas Pollock
Created:
2003-02-11 16:48:51 UTC
Size:
1.11 KB
patch
obsolete
>--- /etc/X11/xdm/Xsetup_0 2003-01-14 13:49:14.000000000 -0500 >+++ Xsetup_0 2003-02-11 16:44:00.000000000 -0500 >@@ -18,15 +18,16 @@ > # update all kdmrcs located; tries some pretty much impossible locations > # to make sure we get 'em all > source /etc/make.conf >-for dir in /usr/kde/* /usr $KDEDIR $KDE2DIR $KDE3DIR $KDE2LIBSDIR $KDE3LIBSDIR >-do >- >- echo "Changing kdmrc in $dir" >- cd ${dir}/share/config/kdm || continue >- >- cp kdmrc kdmrc.orig >- sed -e "/SessionTypes=/c\ >-${sessions}" kdmrc.orig > kdmrc >- rm kdmrc.orig >- >-done >+/bin/echo "Updating session types in /var/cache/kdm/kdmrc" >+if [ -e /var/cache/kdm/kdmrc ]; then >+ /bin/cp /var/cache/kdm/kdmrc /var/cache/kdm/kdmrc.orig >+ /bin/sed -e "/SessionTypes=/c\${sessions}" kdmrc.orig > kdmrc >+ /bin/rm kdmrc.orig; >+elif [ -d /var/cache/kdm ]; then >+ /bin/echo "Couldn't find kdmrc. Don't panic; I'll try to generate a dummy file." >+ /bin/echo ${sessions} /var/cache/kdm/kdmrc; >+else >+ /bin/echo "Couldn't find the cache directory. Don't panic; I'll try to make it for you." >+ /bin/mkdir -p /var/cache/kdm >+ /bin/echo ${sessions} > /var/cache/kdm/kdmrc; >+fi
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 15315
: 8172