From 24d1076696ebe6696a8b8df414ab265aa6fc89c2 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 11 Dec 2010 14:00:46 +0100 Subject: udevd: simplify udev database and fix DEVNAME handling --- udev/udev-node.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'udev/udev-node.c') diff --git a/udev/udev-node.c b/udev/udev-node.c index 70488c420b..a9ffa988b1 100644 --- a/udev/udev-node.c +++ b/udev/udev-node.c @@ -327,7 +327,7 @@ static void link_update(struct udev_device *dev, const char *slink, bool add) err = util_create_path(udev, filename); if (err != 0 && err != -ENOENT) break; - fd = open(filename, O_WRONLY|O_CREAT|O_NOFOLLOW, 0444); + fd = open(filename, O_WRONLY|O_CREAT|O_CLOEXEC|O_TRUNC|O_NOFOLLOW, 0444); if (fd >= 0) close(fd); else -- cgit v1.2.3-54-g00ecf