Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F147912623
D41658.id126693.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D41658.id126693.diff
View Options
diff --git a/lib/nss_tacplus/nss_tacplus.c b/lib/nss_tacplus/nss_tacplus.c
--- a/lib/nss_tacplus/nss_tacplus.c
+++ b/lib/nss_tacplus/nss_tacplus.c
@@ -271,12 +271,48 @@
return (ret);
}
+static int
+nss_tacplus_setpwent(void *retval __unused, void *mdata __unused,
+ va_list ap __unused)
+{
+
+ return (NS_SUCCESS);
+}
+
+static int
+nss_tacplus_getpwent_r(void *retval, void *mdata __unused, va_list ap)
+{
+ struct passwd *pwd = va_arg(ap, struct passwd *);
+ char *buffer = va_arg(ap, char *);
+ size_t bufsize = va_arg(ap, size_t);
+ int *result = va_arg(ap, int *);
+
+ (void)pwd;
+ (void)buffer;
+ (void)bufsize;
+ *(void **)retval = NULL;
+ *result = 0;
+ return (NS_SUCCESS);
+
+}
+
+static int
+nss_tacplus_endpwent(void *retval __unused, void *mdata __unused,
+ va_list ap __unused)
+{
+
+ return (NS_SUCCESS);
+}
+
ns_mtab *
nss_module_register(const char *name __unused, unsigned int *plen,
nss_module_unregister_fn *unreg)
{
static ns_mtab mtab[] = {
{ "passwd", "getpwnam_r", &nss_tacplus_getpwnam_r, NULL },
+ { "passwd", "setpwent", &nss_tacplus_setpwent, NULL },
+ { "passwd", "getpwent_r", &nss_tacplus_getpwent_r, NULL },
+ { "passwd", "endpwent", &nss_tacplus_endpwent, NULL },
};
*plen = nitems(mtab);
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Sun, Mar 15, 3:07 PM (18 h, 24 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
29720747
Default Alt Text
D41658.id126693.diff (1 KB)
Attached To
Mode
D41658: nss_tacplus: Provide dummy setpwent(), getpwent_r(), endpwent().
Attached
Detach File
Event Timeline
Log In to Comment