diff options
author | rwatson <rwatson@FreeBSD.org> | 2006-09-02 08:18:22 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2006-09-02 08:18:22 +0000 |
commit | 4f2dba52bb6a57dd318e85de5cb5dfa2edc525c8 (patch) | |
tree | 728a1a7af09af1c318f11573a5f36213a45cd858 | |
parent | f41d0bcd975ac6d528d80a76bf336343c34a830c (diff) | |
download | FreeBSD-src-4f2dba52bb6a57dd318e85de5cb5dfa2edc525c8.zip FreeBSD-src-4f2dba52bb6a57dd318e85de5cb5dfa2edc525c8.tar.gz |
Remove two hypothetical calls to suser() in ifdef'd (and uncompilable)
svr4 code: this code would call centralized sysctl code that does
these checks also.
MFC after: 1 week
Obtained from: TrustedBSD Project
Sponsored by: nCircle Network Security, Inc.
-rw-r--r-- | sys/compat/svr4/svr4_stat.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/sys/compat/svr4/svr4_stat.c b/sys/compat/svr4/svr4_stat.c index d0f4d93..915175a 100644 --- a/sys/compat/svr4/svr4_stat.c +++ b/sys/compat/svr4/svr4_stat.c @@ -470,14 +470,10 @@ svr4_sys_systeminfo(td, uap) break; #if defined(WHY_DOES_AN_EMULATOR_WANT_TO_SET_HOSTNAMES) case SVR4_SI_SET_HOSTNAME: - if ((error = suser(td)) != 0) - return error; name = KERN_HOSTNAME; return kern_sysctl(&name, 1, 0, 0, uap->buf, rlen, td); case SVR4_SI_SET_SRPC_DOMAIN: - if ((error = suser(td)) != 0) - return error; name = KERN_NISDOMAINNAME; return kern_sysctl(&name, 1, 0, 0, uap->buf, rlen, td); #else |