[packages] add the shadow suite, provides useradd, usermod, userdel, groupadd, groupmod, groupdel utilities
git-svn-id: svn://svn.openwrt.org/openwrt/packages@23893 3c298f89-4303-0410-b956-a3cf2f4a3e73
This commit is contained in:
parent
c6e0e0e040
commit
7bf90a4523
11
utils/shadow/patches/001-fix-malloc-prototype.path
Normal file
11
utils/shadow/patches/001-fix-malloc-prototype.path
Normal file
@ -0,0 +1,11 @@
|
||||
--- a/libmisc/xmalloc.c
|
||||
+++ b/libmisc/xmalloc.c
|
||||
@@ -16,7 +16,7 @@ RCSID("$Id: xmalloc.c,v 1.3 1998/12/28 2
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
-extern char *malloc();
|
||||
+extern void *malloc(size_t size);
|
||||
|
||||
char *
|
||||
xmalloc(size_t size)
|
41
utils/shadow/patches/002-disable-nis-lookup.patch
Normal file
41
utils/shadow/patches/002-disable-nis-lookup.patch
Normal file
@ -0,0 +1,41 @@
|
||||
--- a/libmisc/login_access.c
|
||||
+++ b/libmisc/login_access.c
|
||||
@@ -53,7 +53,6 @@ RCSID("$Id: login_access.c,v 1.6 1998/01
|
||||
#include <arpa/inet.h> /* for inet_ntoa() */
|
||||
|
||||
extern struct group *getgrnam();
|
||||
-extern int innetgr();
|
||||
#if 0 /* should be defined by <errno.h> */
|
||||
extern int errno;
|
||||
#endif
|
||||
@@ -193,29 +192,7 @@ myhostname(void)
|
||||
static int
|
||||
netgroup_match(const char *group, const char *machine, const char *user)
|
||||
{
|
||||
-#if 0 /* original code */
|
||||
-#ifdef NIS
|
||||
- static char *mydomain = 0;
|
||||
-
|
||||
- if (mydomain == 0)
|
||||
- yp_get_default_domain(&mydomain);
|
||||
- return (innetgr(group, machine, user, mydomain));
|
||||
-#else
|
||||
- syslog(LOG_ERR, "NIS netgroup support not configured");
|
||||
- return (NO);
|
||||
-#endif
|
||||
-#else /* works better with glibc? */
|
||||
- static char *mydomain = 0;
|
||||
-
|
||||
- if (mydomain == 0) {
|
||||
- static char domain[MAXHOSTNAMELEN+1];
|
||||
-
|
||||
- getdomainname(domain, MAXHOSTNAMELEN);
|
||||
- mydomain = domain;
|
||||
- }
|
||||
-
|
||||
- return innetgr(group, machine, user, mydomain);
|
||||
-#endif
|
||||
+ return (NO);
|
||||
}
|
||||
|
||||
/* user_match - match a username against one token */
|
Loading…
x
Reference in New Issue
Block a user