aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-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;