summaryrefslogtreecommitdiff
path: root/sys
diff options
context:
space:
mode:
authorTed Unangst <tedu@cvs.openbsd.org>2003-09-02 16:57:30 +0000
committerTed Unangst <tedu@cvs.openbsd.org>2003-09-02 16:57:30 +0000
commit3a8103eceee4fa3349b209db94db7a98c81b3637 (patch)
tree1b8a68ebe6483dcc4e2de5c7f842ba33db20abb2 /sys
parent4773aa74cf8b2a33172caadf018ae6f62940a0e3 (diff)
fix suser() calls, pr3430
Diffstat (limited to 'sys')
-rw-r--r--sys/netatalk/at_control.c4
-rw-r--r--sys/netatalk/ddp_usrreq.c4
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/netatalk/at_control.c b/sys/netatalk/at_control.c
index 8b499f57ab6..bc297d4fa2e 100644
--- a/sys/netatalk/at_control.c
+++ b/sys/netatalk/at_control.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: at_control.c,v 1.4 2002/03/14 01:27:10 millert Exp $ */
+/* $OpenBSD: at_control.c,v 1.5 2003/09/02 16:57:29 tedu Exp $ */
/*
* Copyright (c) 1990,1991 Regents of The University of Michigan.
@@ -142,7 +142,7 @@ at_control( cmd, data, ifp, p )
* What a great idea this is: Let's reverse the meaning of
* the return...
*/
- if ( suser( p->p_ucred, &p->p_acflag )) {
+ if ( suser( p, 0 )) {
return( EPERM );
}
diff --git a/sys/netatalk/ddp_usrreq.c b/sys/netatalk/ddp_usrreq.c
index 780c55e4bc3..dbe337ef07d 100644
--- a/sys/netatalk/ddp_usrreq.c
+++ b/sys/netatalk/ddp_usrreq.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: ddp_usrreq.c,v 1.6 2002/03/14 01:27:10 millert Exp $ */
+/* $OpenBSD: ddp_usrreq.c,v 1.7 2003/09/02 16:57:29 tedu Exp $ */
/*
* Copyright (c) 1990,1994 Regents of The University of Michigan.
@@ -293,7 +293,7 @@ at_pcbsetaddr( ddp, addr, p )
return( EINVAL );
}
if ( sat->sat_port < ATPORT_RESERVED &&
- suser( p->p_ucred, &p->p_acflag )) {
+ suser( p, 0 )) {
return( EACCES );
}
}