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 152568 Details for
Bug 227602
gssd requires server to be running portmapper
[?]
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]
patch -- Use service portion of clp->servicename rather than hard-coding "nfs"
nfs-utils-1.0.6-gss-hardcoded-servicename.patch (text/plain), 1.25 KB, created by
Jeff Layton
on 2007-04-13 18:10:53 UTC
(
hide
)
Description:
patch -- Use service portion of clp->servicename rather than hard-coding "nfs"
Filename:
MIME Type:
Creator:
Jeff Layton
Created:
2007-04-13 18:10:53 UTC
Size:
1.25 KB
patch
obsolete
>--- nfs-utils-1.0.6/utils/gssd/gssd_proc.c.~2~ >+++ nfs-utils-1.0.6/utils/gssd/gssd_proc.c >@@ -437,6 +437,8 @@ int create_auth_rpc_client(struct clnt_i > int sockp = RPC_ANYSOCK; > int sendsz = 32768, recvsz = 32768; > struct addrinfo ai_hints, *a = NULL; >+ char service[64]; >+ char *at_sign; > > sec.qop = GSS_C_QOP_DEFAULT; > sec.svc = RPCSEC_GSS_SVC_NONE; >@@ -506,8 +508,21 @@ int create_auth_rpc_client(struct clnt_i > goto out_fail; > } > >- errcode = getaddrinfo(clp->servername, "nfs", >- &ai_hints, &a); >+ /* extract the service name from clp->servicename */ >+ if ((at_sign = strchr(clp->servicename, '@')) == NULL) { >+ printerr(0, "WARNING: servicename (%s) not formatted as " >+ "expected with service@host", clp->servicename); >+ goto out_fail; >+ } >+ if ((at_sign - clp->servicename) >= sizeof(service)) { >+ printerr(0, "WARNING: service portion of servicename (%s) " >+ "is too long!", clp->servicename); >+ goto out_fail; >+ } >+ strncpy(service, clp->servicename, at_sign - clp->servicename); >+ service[at_sign - clp->servicename] = '\0'; >+ >+ errcode = getaddrinfo(clp->servername, service, &ai_hints, &a); > if (errcode) { > printerr(0, "WARNING: Error from getaddrinfo for server " > "'%s': %s", clp->servername, gai_strerror(errcode));
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 227602
:
152566
| 152568