summaryrefslogtreecommitdiffstats
path: root/libexec/rpc.rusersd
diff options
context:
space:
mode:
authorats <ats@FreeBSD.org>1994-11-18 22:40:11 +0000
committerats <ats@FreeBSD.org>1994-11-18 22:40:11 +0000
commit0b8b8f01eece5d1458fa785e8069b1cd9a8373e0 (patch)
tree4c36ccb84014442629b2ffff347588d3cac1238f /libexec/rpc.rusersd
parent3e9710907d797f0e10c863862166e2557bf585bb (diff)
downloadFreeBSD-src-0b8b8f01eece5d1458fa785e8069b1cd9a8373e0.zip
FreeBSD-src-0b8b8f01eece5d1458fa785e8069b1cd9a8373e0.tar.gz
Reviewed by: Roger Holst roger@first.gmd.de
Add an initialization of the len parameter for the getsockname call. Now rpc.rusersd can run under inetd.
Diffstat (limited to 'libexec/rpc.rusersd')
-rw-r--r--libexec/rpc.rusersd/rusersd.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libexec/rpc.rusersd/rusersd.c b/libexec/rpc.rusersd/rusersd.c
index 525a575..d2a0d84 100644
--- a/libexec/rpc.rusersd/rusersd.c
+++ b/libexec/rpc.rusersd/rusersd.c
@@ -32,7 +32,7 @@
*/
#ifndef lint
-static char rcsid[] = "$Id: rusersd.c,v 1.1 1993/09/16 00:34:49 jtc Exp $";
+static char rcsid[] = "$Id: rusersd.c,v 1.1.1.1 1994/08/28 14:53:45 csgr Exp $";
#endif /* not lint */
#include <stdio.h>
@@ -68,6 +68,7 @@ main(argc, argv)
/*
* See if inetd started us
*/
+ fromlen = sizeof(from);
if (getsockname(0, (struct sockaddr *)&from, &fromlen) < 0) {
from_inetd = 0;
sock = RPC_ANYSOCK;
OpenPOWER on IntegriCloud