PR/50057: Wolfgang Stukenbrock: yp-map transfer removes SECURE-flag
This commit is contained in:
parent
f8a662ece8
commit
cb4eacf0ac
|
@ -1,4 +1,4 @@
|
||||||
/* $NetBSD: ypserv_proc.c,v 1.16 2011/08/30 17:06:22 plunky Exp $ */
|
/* $NetBSD: ypserv_proc.c,v 1.17 2015/07/17 15:58:01 christos Exp $ */
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
|
* Copyright (c) 1994 Mats O Jansson <moj@stacken.kth.se>
|
||||||
|
@ -28,7 +28,7 @@
|
||||||
|
|
||||||
#include <sys/cdefs.h>
|
#include <sys/cdefs.h>
|
||||||
#ifndef lint
|
#ifndef lint
|
||||||
__RCSID("$NetBSD: ypserv_proc.c,v 1.16 2011/08/30 17:06:22 plunky Exp $");
|
__RCSID("$NetBSD: ypserv_proc.c,v 1.17 2015/07/17 15:58:01 christos Exp $");
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#include <sys/stat.h>
|
#include <sys/stat.h>
|
||||||
|
@ -166,7 +166,7 @@ ypproc_match_2_svc(void *argp, struct svc_req *rqstp)
|
||||||
if (secure && securecheck(caller))
|
if (secure && securecheck(caller))
|
||||||
res.status = YP_YPERR;
|
res.status = YP_YPERR;
|
||||||
else
|
else
|
||||||
res = ypdb_get_record(k->domain, k->map, k->keydat, FALSE);
|
res = ypdb_get_record(k->domain, k->map, k->keydat, secure);
|
||||||
|
|
||||||
return ((void *)&res);
|
return ((void *)&res);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue