diff options
author | eadler <eadler@FreeBSD.org> | 2012-06-19 06:18:37 +0000 |
---|---|---|
committer | eadler <eadler@FreeBSD.org> | 2012-06-19 06:18:37 +0000 |
commit | a60d1f6e5a0fe73d35acfcd458741ca308c560d9 (patch) | |
tree | 04fe97cef2b87eaef65b55c81e107b964cdab5d0 /usr.sbin/mfiutil/mfi_cmd.c | |
parent | 1edc5fff530bcba6af1ed5f9906050641833c0e9 (diff) | |
download | FreeBSD-src-a60d1f6e5a0fe73d35acfcd458741ca308c560d9.zip FreeBSD-src-a60d1f6e5a0fe73d35acfcd458741ca308c560d9.tar.gz |
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
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 7fedfb6..3cf703a 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 |