aboutsummaryrefslogtreecommitdiff
path: root/usr.sbin/mfiutil/mfi_cmd.c
diff options
context:
space:
mode:
authorEitan Adler <eadler@FreeBSD.org>2012-06-19 06:18:37 +0000
committerEitan Adler <eadler@FreeBSD.org>2012-06-19 06:18:37 +0000
commitbf4ec4dfabe63bb4fe4720b958d15fdf2df982ac (patch)
tree04fe97cef2b87eaef65b55c81e107b964cdab5d0 /usr.sbin/mfiutil/mfi_cmd.c
parent7e22d9ed960efbdae121c4b529db934c48e95124 (diff)
downloadsrc-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.c4
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