Relay-Version: version B 2.10 5/3/83; site utzoo.UUCP Path: utzoo!mnetor!seismo!ut-sally!husc6!cmcl2!brl-adm!adm!tcs@USNA.MIL From: tcs@USNA.MIL (Terry Slattery) Newsgroups: comp.unix.wizards Subject: Small bug in rpc.mountd.c Message-ID: <7395@brl-adm.ARPA> Date: Fri, 15-May-87 10:36:13 EDT Article-I.D.: brl-adm.7395 Posted: Fri May 15 10:36:13 1987 Date-Received: Sat, 16-May-87 23:35:34 EDT Sender: news@brl-adm.ARPA Lines: 31 The author of rpc.mountd.c obviously copied much of the code from rpc.rstatd.c because the perror() call after the getsockname() call will print "rstatd: getsockname". Here is the diff: diff -c rpc.mountd.c.bak rpc.mountd.c -------------------------------------- *** rpc.mountd.c.bak Fri May 15 09:42:13 1987 --- rpc.mountd.c Fri May 15 09:42:38 1987 *************** *** 86,92 **** #endif if (getsockname(0, &addr, &len) != 0) { ! perror("rstat: getsockname"); exit(1); } if ((transp = svcudp_create(0)) == NULL) { --- 86,92 ---- #endif if (getsockname(0, &addr, &len) != 0) { ! perror("mountd: getsockname"); exit(1); } if ((transp = svcudp_create(0)) == NULL) { ----------------------------------------- -tcs Terry Slattery U.S. Naval Academy 301-267-4413 ARPA: tcs@usna.arpa UUCP: decvax!brl-smoke!usna!tcs