From 5083ed18af4481fdea4361d2d2938ce89603b7c4 Mon Sep 17 00:00:00 2001 From: Robert Watson Date: Fri, 27 Dec 2002 17:50:39 +0000 Subject: [PATCH] Use UID_ and GID_ constants instead of hard-coded numeric values with make_dev(). Use OPERATOR instead of implicit WHEEL to match other storage devices. Use a mode of 0640 to be consistent with other storage devices. Submitted by: kris Reviewed by: scottl --- sys/dev/asr/asr.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index 85d1075be191..c9a2959abf67 100644 --- a/sys/dev/asr/asr.c +++ b/sys/dev/asr/asr.c @@ -3178,7 +3178,8 @@ asr_attach (ATTACH_ARGS) /* * Generate the device node information */ - (void)make_dev(&asr_cdevsw, unit, 0, 0, S_IRWXU, "rasr%d", unit); + (void)make_dev(&asr_cdevsw, unit, UID_ROOT, GID_OPERATOR, 0640, + "rasr%d", unit); ATTACH_RETURN(0); } /* asr_attach */