s/getpwnam/k_&/g.

git-svn-id: svn://svn.h5l.se/heimdal/trunk/heimdal@517 ec53bebd-3082-4978-b11e-865c3cabbd6b
This commit is contained in:
Assar Westerlund
1996-05-10 22:25:51 +00:00
parent 2063f6352d
commit 58b6c16792
14 changed files with 19 additions and 13 deletions

View File

@@ -31,7 +31,7 @@ SHLIBEXT = @SHLIBEXT@
LIB = $(LIBNAME).$(LIBEXT)
OBJECTS = signal.o @LIBOBJS@
OBJECTS = k_getpwnam.o signal.o @LIBOBJS@
all: $(LIB)

View File

@@ -371,7 +371,7 @@ globtilde(const Char *pattern, Char *patbuf, glob_t *pglob)
/*
* Expand a ~user
*/
if ((pwd = getpwnam((char*) patbuf)) == NULL)
if ((pwd = k_getpwnam((char*) patbuf)) == NULL)
return pattern;
else
h = pwd->pw_dir;

View File

@@ -220,7 +220,7 @@ again:
}
if (first == 1 && (__check_rhosts_file || superuser)) {
first = 0;
if ((pwd = getpwnam(luser)) == NULL)
if ((pwd = k_getpwnam(luser)) == NULL)
return (-1);
(void)strcpy(pbuf, pwd->pw_dir);
(void)strcat(pbuf, "/.rhosts");

View File

@@ -70,4 +70,7 @@ int getent(char *cp, char *name);
char *getstr(char *id, char **cpp);
#endif
#include <pwd.h>
struct passwd *k_getpwnam (char *user);
#endif /* __ROKEN_H__ */

View File

@@ -70,4 +70,7 @@ int getent(char *cp, char *name);
char *getstr(char *id, char **cpp);
#endif
#include <pwd.h>
struct passwd *k_getpwnam (char *user);
#endif /* __ROKEN_H__ */