Mageia Bugzilla – Attachment 11285 Details for
Bug 25447
ypwhich errors saying wrong version.
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Requests
|
Help
|
Log In
[x]
|
New Account
|
Forgot Password
[patch]
ypwhich.c patch
ypwhich.c.diff (text/plain), 687 bytes, created by
Stephen Usher
on 2019-09-18 10:58:51 CEST
(
hide
)
Description:
ypwhich.c patch
Filename:
MIME Type:
Creator:
Stephen Usher
Created:
2019-09-18 10:58:51 CEST
Size:
687 bytes
patch
obsolete
>*** ypwhich.c.orig 2018-03-27 14:47:48.000000000 +0100 >--- ypwhich.c 2019-09-18 09:53:34.674789640 +0100 >*************** >*** 111,117 **** > struct timeval tv; > CLIENT *client; > >! client = clnt_create(hostname, YPBINDPROG, (vers==-1)?3:vers, "udp"); > if (client == NULL) > { > fprintf (stderr, "ypwhich: %s\n", yperr_string (YPERR_YPBIND)); >--- 111,125 ---- > struct timeval tv; > CLIENT *client; > >! if (vers == -1) >! #ifdef HAVE_YPBIND3 >! vers = 3; >! #else >! vers = 2; >! #endif >! >! client = clnt_create(hostname, YPBINDPROG, vers, "udp"); >! > if (client == NULL) > { > fprintf (stderr, "ypwhich: %s\n", yperr_string (YPERR_YPBIND));
*** ypwhich.c.orig 2018-03-27 14:47:48.000000000 +0100 --- ypwhich.c 2019-09-18 09:53:34.674789640 +0100 *************** *** 111,117 **** struct timeval tv; CLIENT *client; ! client = clnt_create(hostname, YPBINDPROG, (vers==-1)?3:vers, "udp"); if (client == NULL) { fprintf (stderr, "ypwhich: %s\n", yperr_string (YPERR_YPBIND)); --- 111,125 ---- struct timeval tv; CLIENT *client; ! if (vers == -1) ! #ifdef HAVE_YPBIND3 ! vers = 3; ! #else ! vers = 2; ! #endif ! ! client = clnt_create(hostname, YPBINDPROG, vers, "udp"); ! if (client == NULL) { fprintf (stderr, "ypwhich: %s\n", yperr_string (YPERR_YPBIND));
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 25447
: 11285