diff options
author | Eitan Adler <eadler@FreeBSD.org> | 2012-06-19 06:18:37 +0000 |
---|---|---|
committer | Eitan Adler <eadler@FreeBSD.org> | 2012-06-19 06:18:37 +0000 |
commit | bf4ec4dfabe63bb4fe4720b958d15fdf2df982ac (patch) | |
tree | 04fe97cef2b87eaef65b55c81e107b964cdab5d0 /usr.sbin/mfiutil/mfi_cmd.c | |
parent | 7e22d9ed960efbdae121c4b529db934c48e95124 (diff) | |
download | src-bf4ec4dfabe63bb4fe4720b958d15fdf2df982ac.tar.gz src-bf4ec4dfabe63bb4fe4720b958d15fdf2df982ac.zip |
Allow users with RO privilege to the device to read the RO attributes.
PR: bin/167302
Submitted by: markham breitbach <markham@ssimicro.com>
Discussed with: pjd (briefly)
Approved by: cperciva
MFC after: 1 week
Notes
Notes:
svn path=/head/; revision=237259
Diffstat (limited to 'usr.sbin/mfiutil/mfi_cmd.c')
-rw-r--r-- | usr.sbin/mfiutil/mfi_cmd.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/usr.sbin/mfiutil/mfi_cmd.c b/usr.sbin/mfiutil/mfi_cmd.c index 7fedfb6b7f52..3cf703af3069 100644 --- a/usr.sbin/mfiutil/mfi_cmd.c +++ b/usr.sbin/mfiutil/mfi_cmd.c @@ -301,12 +301,12 @@ mfi_ctrl_get_info(int fd, struct mfi_ctrl_info *info, uint8_t *statusp) } int -mfi_open(int unit) +mfi_open(int unit, int acs) { char path[MAXPATHLEN]; snprintf(path, sizeof(path), "/dev/mfi%d", unit); - return (open(path, O_RDWR)); + return (open(path, acs)); } void |