diff options
-rw-r--r-- | sys/netatalk/at_control.c | 4 | ||||
-rw-r--r-- | sys/netatalk/ddp_usrreq.c | 4 |
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 ); } } |