1
0
mirror of https://git.FreeBSD.org/src.git synced 2024-12-16 10:20:30 +00:00

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
This commit is contained in:
Robert Watson 2002-12-27 17:50:39 +00:00
parent ed1a13b18f
commit 5083ed18af
Notes: svn2git 2020-12-20 02:59:44 +00:00
svn path=/head/; revision=108328

View File

@ -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 */