diff options
author | rwatson <rwatson@FreeBSD.org> | 2002-12-27 17:50:39 +0000 |
---|---|---|
committer | rwatson <rwatson@FreeBSD.org> | 2002-12-27 17:50:39 +0000 |
commit | 4cb5c6109a52032d010c41352bc2317610c40357 (patch) | |
tree | f50386ef54a9c384e236d2b4a786de1f8317b02e /sys/dev/asr | |
parent | f5462007056ca440dfe2c11ce75452bcdab12f57 (diff) | |
download | FreeBSD-src-4cb5c6109a52032d010c41352bc2317610c40357.zip FreeBSD-src-4cb5c6109a52032d010c41352bc2317610c40357.tar.gz |
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
Diffstat (limited to 'sys/dev/asr')
-rw-r--r-- | sys/dev/asr/asr.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/sys/dev/asr/asr.c b/sys/dev/asr/asr.c index 85d1075..c9a2959 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 */ |