summaryrefslogtreecommitdiffstats
path: root/libblkid/src/read.c
diff options
context:
space:
mode:
authorKarel Zak2012-08-29 19:49:19 +0200
committerKarel Zak2012-09-04 16:49:28 +0200
commit49a8f58e48a5b7f5d4852700ecdd317c7b547a74 (patch)
tree18299f00849243a74d3b65b52ec24427f86c24b7 /libblkid/src/read.c
parentbuild-sys: release++ (v2.22) (diff)
downloadkernel-qcow2-util-linux-49a8f58e48a5b7f5d4852700ecdd317c7b547a74.tar.gz
kernel-qcow2-util-linux-49a8f58e48a5b7f5d4852700ecdd317c7b547a74.tar.xz
kernel-qcow2-util-linux-49a8f58e48a5b7f5d4852700ecdd317c7b547a74.zip
libblkid: use O_CLOEXEC
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'libblkid/src/read.c')
-rw-r--r--libblkid/src/read.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libblkid/src/read.c b/libblkid/src/read.c
index 60d13db0c..d31d024bc 100644
--- a/libblkid/src/read.c
+++ b/libblkid/src/read.c
@@ -398,7 +398,7 @@ void blkid_read_cache(blkid_cache cache)
* If the file doesn't exist, then we just return an empty
* struct so that the cache can be populated.
*/
- if ((fd = open(cache->bic_filename, O_RDONLY)) < 0)
+ if ((fd = open(cache->bic_filename, O_RDONLY|O_CLOEXEC)) < 0)
return;
if (fstat(fd, &st) < 0)
goto errout;