aboutsummaryrefslogtreecommitdiff
path: root/sys/dev/cy
diff options
context:
space:
mode:
authorPoul-Henning Kamp <phk@FreeBSD.org>1999-01-30 12:17:38 +0000
committerPoul-Henning Kamp <phk@FreeBSD.org>1999-01-30 12:17:38 +0000
commit4e2d2aa1cd4f4f0351b1c984930edcdde311c296 (patch)
treeb7a48795d9967f095d3ec0a1a72925f21db011aa /sys/dev/cy
parent871f5df0ef4736bad5a1d3445abbb12eb8754c30 (diff)
Notes
Diffstat (limited to 'sys/dev/cy')
-rw-r--r--sys/dev/cy/cy.c5
-rw-r--r--sys/dev/cy/cy_isa.c5
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/cy/cy.c b/sys/dev/cy/cy.c
index e95d7e6354797..42f6794482786 100644
--- a/sys/dev/cy/cy.c
+++ b/sys/dev/cy/cy.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.83 1999/01/08 19:17:46 bde Exp $
+ * $Id: cy.c,v 1.84 1999/01/28 01:59:53 dillon Exp $
*/
#include "opt_compat.h"
@@ -728,7 +728,8 @@ open_top:
goto open_top;
}
}
- if (tp->t_state & TS_XCLUDE && p->p_ucred->cr_uid != 0) {
+ if (tp->t_state & TS_XCLUDE &&
+ suser(p->p_ucred, &p->p_acflag)) {
error = EBUSY;
goto out;
}
diff --git a/sys/dev/cy/cy_isa.c b/sys/dev/cy/cy_isa.c
index e95d7e6354797..42f6794482786 100644
--- a/sys/dev/cy/cy_isa.c
+++ b/sys/dev/cy/cy_isa.c
@@ -27,7 +27,7 @@
* NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
* SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
- * $Id: cy.c,v 1.83 1999/01/08 19:17:46 bde Exp $
+ * $Id: cy.c,v 1.84 1999/01/28 01:59:53 dillon Exp $
*/
#include "opt_compat.h"
@@ -728,7 +728,8 @@ open_top:
goto open_top;
}
}
- if (tp->t_state & TS_XCLUDE && p->p_ucred->cr_uid != 0) {
+ if (tp->t_state & TS_XCLUDE &&
+ suser(p->p_ucred, &p->p_acflag)) {
error = EBUSY;
goto out;
}