summaryrefslogtreecommitdiff
path: root/src/ata_id/ata_id.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/ata_id/ata_id.c')
-rw-r--r--src/ata_id/ata_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/ata_id/ata_id.c b/src/ata_id/ata_id.c
index 649890618e..f84281dd1a 100644
--- a/src/ata_id/ata_id.c
+++ b/src/ata_id/ata_id.c
@@ -468,7 +468,7 @@ int main(int argc, char *argv[])
goto exit;
}
- fd = open(node, O_RDONLY|O_NONBLOCK);
+ fd = open(node, O_RDONLY|O_NONBLOCK|O_CLOEXEC);
if (fd < 0) {
log_error("unable to open '%s'", node);
rc = 1;