Mageia Bugzilla – Attachment 2906 Details for
Bug 6014
NIS client broken in Mageia 2
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
Patch for /etc/rc.d/init.d/ypbind to set the domain name if not already set.
ypbind.patch (text/plain), 725 bytes, created by
Stephen Usher
on 2012-10-03 16:34:54 CEST
(
hide
)
Description:
Patch for /etc/rc.d/init.d/ypbind to set the domain name if not already set.
Filename:
MIME Type:
Creator:
Stephen Usher
Created:
2012-10-03 16:34:54 CEST
Size:
725 bytes
patch
obsolete
>*** ypbind.orig 2012-10-03 15:20:18.938687039 +0100 >--- ypbind 2012-10-03 15:29:06.050149785 +0100 >*************** >*** 30,41 **** >--- 30,54 ---- > # Source function library. > . /etc/rc.d/init.d/functions > >+ # Source network configuration. >+ . /etc/sysconfig/network >+ > RETVAL=0 > > # See how we were called. > case "$1" in > start) > gprintf "Binding to the NIS domain... " >+ mydomain=`domainname` >+ if [ "$mydomain" = "(none)" ]; then >+ if [ "x$NISDOMAIN" != 'x' ]; then >+ gprintf "$NISDOMAIN\n" >+ domainname $NISDOMAIN >+ else >+ gprintf "\nError: NIS domain not specified.\n" >+ exit 1 >+ fi >+ fi > daemon ypbind > echo > # the following fixes problems with the init scripts continuing
*** ypbind.orig 2012-10-03 15:20:18.938687039 +0100 --- ypbind 2012-10-03 15:29:06.050149785 +0100 *************** *** 30,41 **** --- 30,54 ---- # Source function library. . /etc/rc.d/init.d/functions + # Source network configuration. + . /etc/sysconfig/network + RETVAL=0 # See how we were called. case "$1" in start) gprintf "Binding to the NIS domain... " + mydomain=`domainname` + if [ "$mydomain" = "(none)" ]; then + if [ "x$NISDOMAIN" != 'x' ]; then + gprintf "$NISDOMAIN\n" + domainname $NISDOMAIN + else + gprintf "\nError: NIS domain not specified.\n" + exit 1 + fi + fi daemon ypbind echo # the following fixes problems with the init scripts continuing
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 6014
: 2906