Return to pw_yp.c CVS log | Up to [local] / src / usr.bin / chpass |
version 1.7, 1997/02/14 11:05:11 | version 1.8, 1998/03/30 06:59:32 | ||
---|---|---|---|
|
|
||
#include <netdb.h> | #include <netdb.h> | ||
#include <time.h> | #include <time.h> | ||
#include <pwd.h> | #include <pwd.h> | ||
#include <err.h> | |||
#include <errno.h> | #include <errno.h> | ||
#include <stdlib.h> | #include <stdlib.h> | ||
#include <rpc/rpc.h> | #include <rpc/rpc.h> | ||
|
|
||
static char *domain; | static char *domain; | ||
int | |||
pw_yp(pw, uid) | pw_yp(pw, uid) | ||
struct passwd *pw; | struct passwd *pw; | ||
uid_t uid; | uid_t uid; | ||
{ | { | ||
char *master; | char *master; | ||
char *pp, *p; | char *p; | ||
char buf[10]; | char buf[10]; | ||
int r, rpcport, status, alen; | int r, rpcport, status, alen; | ||
struct yppasswd yppasswd; | struct yppasswd yppasswd; | ||
|
|
||
char *line; | char *line; | ||
{ | { | ||
register char *p = line; | register char *p = line; | ||
register int c; | |||
pwent->pw_passwd = "*"; | pwent->pw_passwd = "*"; | ||
pwent->pw_uid = 0; | pwent->pw_uid = 0; |