From 4e918b7253bd541a76d3d9641d0be86dd8e132d3 Mon Sep 17 00:00:00 2001 From: Lennart Poettering Date: Thu, 13 Feb 2014 14:59:56 +0100 Subject: everywhere: always use O_CLOEXEC where it makes sense Signed-off-by: Anthony G. Basile --- src/mtd_probe/mtd_probe.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/mtd_probe') diff --git a/src/mtd_probe/mtd_probe.c b/src/mtd_probe/mtd_probe.c index 70c04db40b..13c757bd1c 100644 --- a/src/mtd_probe/mtd_probe.c +++ b/src/mtd_probe/mtd_probe.c @@ -37,7 +37,7 @@ int main(int argc, char** argv) return 1; } - mtd_fd = open(argv[1], O_RDONLY); + mtd_fd = open(argv[1], O_RDONLY|O_CLOEXEC); if (mtd_fd == -1) { perror("open"); exit(-1); -- cgit v1.2.3-54-g00ecf