Deleted Added
full compact
yp_server.c (21673) yp_server.c (22321)
1/*
2 * Copyright (c) 1995
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40#include <errno.h>
41#include <sys/types.h>
42#include <sys/socket.h>
43#include <netinet/in.h>
44#include <arpa/inet.h>
45#include <rpc/rpc.h>
46
47#ifndef lint
1/*
2 * Copyright (c) 1995
3 * Bill Paul <wpaul@ctr.columbia.edu>. All rights reserved.
4 *
5 * Redistribution and use in source and binary forms, with or without
6 * modification, are permitted provided that the following conditions
7 * are met:
8 * 1. Redistributions of source code must retain the above copyright

--- 31 unchanged lines hidden (view full) ---

40#include <errno.h>
41#include <sys/types.h>
42#include <sys/socket.h>
43#include <netinet/in.h>
44#include <arpa/inet.h>
45#include <rpc/rpc.h>
46
47#ifndef lint
48static const char rcsid[] = "$FreeBSD: head/usr.sbin/ypserv/yp_server.c 21673 1997-01-14 07:20:47Z jkh $";
48static const char rcsid[] = "$FreeBSD: head/usr.sbin/ypserv/yp_server.c 22321 1997-02-06 05:28:52Z wpaul $";
49#endif /* not lint */
50
51int forked = 0;
52int children = 0;
53static char *master_string = "YP_MASTER_NAME";
54static char *order_string = "YP_LAST_MODIFIED";
55static int master_sz = sizeof("YP_MASTER_NAME") - 1;
56static int order_sz = sizeof("YP_LAST_MODIFIED") - 1;

--- 274 unchanged lines hidden (view full) ---

331 {
332 char g[11], t[11], p[11];
333 char ypxfr_command[MAXPATHLEN + 2];
334
335 sprintf (ypxfr_command, "%sypxfr", _PATH_LIBEXEC);
336 sprintf (t, "%u", argp->transid);
337 sprintf (g, "%u", argp->prog);
338 sprintf (p, "%u", argp->port);
49#endif /* not lint */
50
51int forked = 0;
52int children = 0;
53static char *master_string = "YP_MASTER_NAME";
54static char *order_string = "YP_LAST_MODIFIED";
55static int master_sz = sizeof("YP_MASTER_NAME") - 1;
56static int order_sz = sizeof("YP_LAST_MODIFIED") - 1;

--- 274 unchanged lines hidden (view full) ---

331 {
332 char g[11], t[11], p[11];
333 char ypxfr_command[MAXPATHLEN + 2];
334
335 sprintf (ypxfr_command, "%sypxfr", _PATH_LIBEXEC);
336 sprintf (t, "%u", argp->transid);
337 sprintf (g, "%u", argp->prog);
338 sprintf (p, "%u", argp->port);
339 if (debug)
339 if (debug) {
340 close(0); close(1); close(2);
340 close(0); close(1); close(2);
341 }
341 if (strcmp(yp_dir, _PATH_YP)) {
342 execl(ypxfr_command, "ypxfr",
343 "-d", argp->map_parms.domain,
344 "-h", argp->map_parms.peer,
345 "-p", yp_dir, "-C", t,
346 g, inet_ntoa(rqhost->sin_addr),
347 p, argp->map_parms.map,
348 NULL);

--- 578 unchanged lines hidden ---
342 if (strcmp(yp_dir, _PATH_YP)) {
343 execl(ypxfr_command, "ypxfr",
344 "-d", argp->map_parms.domain,
345 "-h", argp->map_parms.peer,
346 "-p", yp_dir, "-C", t,
347 g, inet_ntoa(rqhost->sin_addr),
348 p, argp->map_parms.map,
349 NULL);

--- 578 unchanged lines hidden ---