rpc.ypupdated.c revision 66786d5e1a8c8843193d1d6d52d6c97f3ad96a2e
1N/A * You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
1N/A * file and include the License file at usr/src/OPENSOLARIS.LICENSE.
1N/Avoid ypupdate_prog();
1N/Avoid detachfromtty();
switch (argc) {
insecure++;
insecure = 0;
int proto = 0;
proto)) {
svc_run();
abort();
int fd;
int tt;
close(0);
switch (fork()) {
exit(0);
if (tt >= 0) {
dup(0);
dup(0);
char *netname;
case NULLPROC:
case YPU_CHANGE:
case YPU_DELETE:
case YPU_INSERT:
case YPU_STORE:
case AUTH_DES:
case AUTH_UNIX:
if (insecure) {
char *requester;
char *mapname;
char *key;
char *data;
int status;
int yperrno;
int pid;
int err;
int outval_len;
return (YPERR_YPERR);
switch (err) {
case YPERR_KEY:
return (YPERR_YPERR);
if (pid < 0) {
return (YPERR_YPERR);
return (YPERR_YPERR);
return (yperrno);
char *namebuf;
struct hostent *h;
if (h == NULL) {
NULL);
char *namebuf;