Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/usr.sbin/rpcbind remove unnecessary superuser check -- bind ...
details: https://anonhg.NetBSD.org/src/rev/8bd6461e1be5
branches: trunk
changeset: 763229:8bd6461e1be5
user: pooka <pooka%NetBSD.org@localhost>
date: Mon Mar 14 12:03:45 2011 +0000
description:
remove unnecessary superuser check -- bind will fail if bind fails
diffstat:
usr.sbin/rpcbind/rpcbind.c | 4 +---
1 files changed, 1 insertions(+), 3 deletions(-)
diffs (18 lines):
diff -r 2da98f310fd7 -r 8bd6461e1be5 usr.sbin/rpcbind/rpcbind.c
--- a/usr.sbin/rpcbind/rpcbind.c Mon Mar 14 11:44:20 2011 +0000
+++ b/usr.sbin/rpcbind/rpcbind.c Mon Mar 14 12:03:45 2011 +0000
@@ -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");
Home |
Main Index |
Thread Index |
Old Index