diff options
author | wpaul <wpaul@FreeBSD.org> | 1996-10-25 16:13:09 +0000 |
---|---|---|
committer | wpaul <wpaul@FreeBSD.org> | 1996-10-25 16:13:09 +0000 |
commit | 4561c758bb75d0deb7daba0a85778b82027a1cec (patch) | |
tree | 92894046c11fdcd1d6d68f347976a9f2dc4a1636 /libexec/ypxfr/ypxfrd_getmap.c | |
parent | f4c288024bae04ebcd38b182b94f88401d1080c6 (diff) | |
download | FreeBSD-src-4561c758bb75d0deb7daba0a85778b82027a1cec.zip FreeBSD-src-4561c758bb75d0deb7daba0a85778b82027a1cec.tar.gz |
Give ypxfr the ability to detect the presence of the YP_INTERDOMAIN
and YP_SECURE flags so that it can properly add them to newly created
maps when needed. This applies only when using the 'standard' method
for map transfers. When using rpc.ypxfrd, the whole map is copied
verbatim, along with any special entries that may be encoded in it.
Also made -Wall a little quieter for ypxfrd_getmap.c.
Diffstat (limited to 'libexec/ypxfr/ypxfrd_getmap.c')
-rw-r--r-- | libexec/ypxfr/ypxfrd_getmap.c | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/libexec/ypxfr/ypxfrd_getmap.c b/libexec/ypxfr/ypxfrd_getmap.c index e598883..7e9cd00 100644 --- a/libexec/ypxfr/ypxfrd_getmap.c +++ b/libexec/ypxfr/ypxfrd_getmap.c @@ -29,9 +29,12 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: ypxfrd_getmap.c,v 1.7 1996/06/02 19:51:33 wpaul Exp wpaul $ + * $Id: ypxfrd_getmap.c,v 1.9 1996/10/25 15:58:15 wpaul Exp $ */ +#include <stdlib.h> +#include <unistd.h> +#include <string.h> #include <sys/types.h> #include <time.h> #include <rpcsvc/ypxfrd.h> @@ -44,7 +47,7 @@ #include "ypxfr_extern.h" #ifndef lint -static const char rcsid[] = "$Id: ypxfrd_getmap.c,v 1.7 1996/06/02 19:51:33 wpaul Exp wpaul $"; +static const char rcsid[] = "$Id: ypxfrd_getmap.c,v 1.9 1996/10/25 15:58:15 wpaul Exp $"; #endif int fp = 0; |