diff options
author | Corey Bryant | 2012-08-14 22:43:45 +0200 |
---|---|---|
committer | Kevin Wolf | 2012-08-15 10:48:57 +0200 |
commit | 6165f4d85d92e15b6aebdeeb2559dc687b0353c7 (patch) | |
tree | 8803e96745c9daaada75bc7296c459750d1fa20f /block/vpc.c | |
parent | block: Prevent detection of /dev/fdset/ as floppy (diff) | |
download | qemu-6165f4d85d92e15b6aebdeeb2559dc687b0353c7.tar.gz qemu-6165f4d85d92e15b6aebdeeb2559dc687b0353c7.tar.xz qemu-6165f4d85d92e15b6aebdeeb2559dc687b0353c7.zip |
block: Convert open calls to qemu_open
This patch converts all block layer open calls to qemu_open.
Note that this adds the O_CLOEXEC flag to the changed open paths
when the O_CLOEXEC macro is defined.
Signed-off-by: Corey Bryant <coreyb@linux.vnet.ibm.com>
Signed-off-by: Kevin Wolf <kwolf@redhat.com>
Diffstat (limited to 'block/vpc.c')
-rw-r--r-- | block/vpc.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/block/vpc.c b/block/vpc.c index 5cd13d17a1..60ebf5a067 100644 --- a/block/vpc.c +++ b/block/vpc.c @@ -678,7 +678,7 @@ static int vpc_create(const char *filename, QEMUOptionParameter *options) } /* Create the file */ - fd = open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); + fd = qemu_open(filename, O_WRONLY | O_CREAT | O_TRUNC | O_BINARY, 0644); if (fd < 0) { return -EIO; } |