Module Name: src
Committed By: pooka
Date: Mon Mar 14 12:03:45 UTC 2011
Modified Files:
src/usr.sbin/rpcbind: rpcbind.c
Log Message:
remove unnecessary superuser check -- bind will fail if bind fails
To generate a diff of this commit:
cvs rdiff -u -r1.15 -r1.16 src/usr.sbin/rpcbind/rpcbind.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.sbin/rpcbind/rpcbind.c
diff -u src/usr.sbin/rpcbind/rpcbind.c:1.15 src/usr.sbin/rpcbind/rpcbind.c:1.16
--- src/usr.sbin/rpcbind/rpcbind.c:1.15 Mon Aug 27 19:53:33 2007
+++ src/usr.sbin/rpcbind/rpcbind.c Mon Mar 14 12:03:45 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: rpcbind.c,v 1.15 2007/08/27 19:53:33 dsl Exp $ */
+/* $NetBSD: rpcbind.c,v 1.16 2011/03/14 12:03:45 pooka Exp $ */
/*
* Sun RPC is a product of Sun Microsystems, Inc. and is provided for
@@ -126,8 +126,6 @@
rl.rlim_cur = 128;
setrlimit(RLIMIT_NOFILE, &rl);
}
- if (geteuid()) /* This command allowed only to root */
- errx(1, "Sorry. You are not superuser");
nc_handle = setnetconfig(); /* open netconfig file */
if (nc_handle == NULL)
errx(1, "could not read /etc/netconfig");