summaryrefslogtreecommitdiffstats
path: root/Detail.c
diff options
context:
space:
mode:
authorDoug Ledford <dledford@redhat.com>2008-07-24 18:35:11 -0400
committerDoug Ledford <dledford@redhat.com>2008-07-24 18:35:11 -0400
commitfb97b4d691c04d9303571d7eba3cef4a97264e2f (patch)
treef2ecbee4bd0d262c6a92ac631c642458921f1d8b /Detail.c
parent0bc38b50205db04cd842c5009467a57b1ee1c293 (diff)
downloadmdadm-fb97b4d691c04d9303571d7eba3cef4a97264e2f.tar.gz
mdadm-fb97b4d691c04d9303571d7eba3cef4a97264e2f.tar.xz
mdadm-fb97b4d691c04d9303571d7eba3cef4a97264e2f.zip
Clean up usage of open()
Fix on call that passed an invalid mode to open Don't pass a third arg unless we also pass O_CREAT Use symbolic args for 2nd and 3rd args Signed-off-by: Doug Ledford <dledford@redhat.com>
Diffstat (limited to 'Detail.c')
-rw-r--r--Detail.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/Detail.c b/Detail.c
index 2488c03..2b2111c 100644
--- a/Detail.c
+++ b/Detail.c
@@ -38,7 +38,7 @@ int Detail(char *dev, int brief, int export, int test, char *homehost)
* GET_ARRAY_INFO and GET_DISK_INFO ioctl calls
*/
- int fd = open(dev, O_RDONLY, 0);
+ int fd = open(dev, O_RDONLY);
int vers;
mdu_array_info_t array;
mdu_disk_info_t *disks;