summaryrefslogtreecommitdiff
path: root/libudev/libudev.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2010-05-14 14:52:18 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-05-14 14:52:18 +0200
commit0c5c48040ac0f4c97f73fb3ac5493cc2d84a963b (patch)
tree314ce681dab98eedf25f7b12c87a0e0575143bca /libudev/libudev.c
parent12d73e9587a8d9a3ab6415183e4e6762315aa85a (diff)
libudev: add O_CLOEXEC
Diffstat (limited to 'libudev/libudev.c')
-rw-r--r--libudev/libudev.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libudev/libudev.c b/libudev/libudev.c
index 0ae5a9115a..cd418709f0 100644
--- a/libudev/libudev.c
+++ b/libudev/libudev.c
@@ -146,7 +146,7 @@ struct udev *udev_new(void)
}
if (config_file == NULL)
goto err;
- f = fopen(config_file, "r");
+ f = fopen(config_file, "re");
if (f != NULL) {
char line[UTIL_LINE_SIZE];
int line_nr = 0;