summaryrefslogtreecommitdiff
path: root/gnu/usr.sbin
diff options
context:
space:
mode:
authorBill Paul <wpaul@FreeBSD.org>1995-07-15 17:51:11 +0000
committerBill Paul <wpaul@FreeBSD.org>1995-07-15 17:51:11 +0000
commitc0837c7e135f3896b52de6952c2ad9212d3f997f (patch)
tree484a3b23cb73cd80fbe7542ed90cf85c798cab21 /gnu/usr.sbin
parent8393c48a22c2fd8c292e40af78d30fc773fec7d9 (diff)
Notes
Diffstat (limited to 'gnu/usr.sbin')
-rw-r--r--gnu/usr.sbin/ypserv/server.c9
1 files changed, 6 insertions, 3 deletions
diff --git a/gnu/usr.sbin/ypserv/server.c b/gnu/usr.sbin/ypserv/server.c
index 5b16cfd676e4..06103b54e750 100644
--- a/gnu/usr.sbin/ypserv/server.c
+++ b/gnu/usr.sbin/ypserv/server.c
@@ -24,7 +24,7 @@
** Ported to FreeBSD and hacked all to pieces
** by Bill Paul <wpaul@ctr.columbia.edu>
**
-** $Id: server.c,v 1.7 1995/07/02 18:48:21 wpaul Exp $
+** $Id: server.c,v 1.9 1995/07/14 01:56:49 wpaul Exp $
**
*/
@@ -861,7 +861,7 @@ ypresp_xfr *ypproc_xfr_2_svc(ypreq_xfr *xfr,
switch(fork())
{
case 0:
- {
+ {
char g[11], t[11], p[11];
sprintf (ypxfr_command, "%s/ypxfr", INSTDIR);
@@ -873,10 +873,13 @@ ypresp_xfr *ypproc_xfr_2_svc(ypreq_xfr *xfr,
inet_ntoa(rqhost->sin_addr), p, xfr->map_parms.map, NULL);
Perror("ypxfr execl(): %s",strerror(errno));
exit(0);
- }
+ }
case -1:
+ {
Perror("fork(): %s",strerror(errno));
result.xfrstat = YPXFR_XFRERR;
+ break;
+ }
default:
{
result.xfrstat = YPXFR_SUCC;