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 577220 Details for
Bug 683523
[RFE] Use sssd (when available) for automounter map lookups in LDAP
[?]
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 to check calling endmntent then setmntent and performing a ny name query
sssd-1.8.2-autofs_test_client.c.patch (text/plain), 2.06 KB, created by
Ian Kent
on 2012-04-13 04:05:11 UTC
(
hide
)
Description:
Patch to check calling endmntent then setmntent and performing a ny name query
Filename:
MIME Type:
Creator:
Ian Kent
Created:
2012-04-13 04:05:11 UTC
Size:
2.06 KB
patch
obsolete
>diff -up sssd-1.8.2/src/sss_client/autofs/autofs_test_client.c.orig sssd-1.8.2/src/sss_client/autofs/autofs_test_client.c >--- sssd-1.8.2/src/sss_client/autofs/autofs_test_client.c.orig 2012-04-13 11:37:17.322610424 +0800 >+++ sssd-1.8.2/src/sss_client/autofs/autofs_test_client.c 2012-04-13 11:41:25.990191346 +0800 >@@ -44,6 +44,7 @@ int main(int argc, const char *argv[]) > char *key = NULL; > char *value = NULL; > char *pc_key = NULL; >+ unsigned int saved = 0; > struct poptOption long_options[] = { > POPT_AUTOHELP > { "by-name", 'n', POPT_ARG_STRING, &pc_key, 0, "Request map by name", NULL }, >@@ -86,7 +87,12 @@ int main(int argc, const char *argv[]) > } > > printf("key: %s\t\tvalue: %s\n", key, value); >- free(key); >+ if (saved) >+ free(key); >+ else { >+ pc_key = key; >+ saved++; >+ } > key = NULL; > free(value); > value = NULL; >@@ -98,6 +104,34 @@ int main(int argc, const char *argv[]) > ret, strerror(ret)); > goto end; > } >+ >+ if (!pc_key) >+ goto end; >+ >+ ret = _sss_endautomntent(&ctx); >+ if (ret) { >+ fprintf(stderr, "endautomntent failed [%d]: %s\n", >+ ret, strerror(ret)); >+ exit(EXIT_FAILURE); >+ } >+ >+ ret = _sss_setautomntent(mapname, &ctx); >+ if (ret) { >+ fprintf(stderr, "setautomntent failed [%d]: %s\n", >+ ret, strerror(ret)); >+ exit(EXIT_FAILURE); >+ } >+ >+ ret = _sss_getautomntbyname_r(pc_key, &value, ctx); >+ if (ret) { >+ fprintf(stderr, "getautomntbyname_r failed [%d]: %s\n", >+ ret, strerror(ret)); >+ goto end; >+ } >+ >+ printf("get key %s in map:\t\tvalue: %s\n", pc_key, value); >+ free(value); >+ free(pc_key); > } else { > ret = _sss_getautomntbyname_r(pc_key, &value, ctx); > if (ret == ENOENT) {
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 683523
:
532963
|
532964
|
532965
|
562152
|
562153
|
562156
|
562158
|
575059
|
575244
|
575294
| 577220 |
577221
|
577604
|
582837