[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:
jow 2010-11-06 14:44:15 +00:00
parent c6e0e0e040
commit 7bf90a4523
2 changed files with 52 additions and 0 deletions

View 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)

View 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 */