diff options
author | Lennart Poettering <lennart@poettering.net> | 2014-02-13 14:59:56 +0100 |
---|---|---|
committer | Lennart Poettering <lennart@poettering.net> | 2014-02-13 14:59:56 +0100 |
commit | c8a202b7d47f9d6bba3100a208abdadfc383499e (patch) | |
tree | d19560cf0723f8e2305170881eb442b5ecb12b0d /src/udev/udevadm-trigger.c | |
parent | 955d98c9c1104d469c2989dbfb58f58ee6fe9bdc (diff) |
everywhere: always use O_CLOEXEC where it makes sense
Diffstat (limited to 'src/udev/udevadm-trigger.c')
-rw-r--r-- | src/udev/udevadm-trigger.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevadm-trigger.c b/src/udev/udevadm-trigger.c index 087ee4bfae..0ee27bb408 100644 --- a/src/udev/udevadm-trigger.c +++ b/src/udev/udevadm-trigger.c @@ -51,7 +51,7 @@ static void exec_list(struct udev_enumerate *udev_enumerate, const char *action) if (dry_run) continue; strscpyl(filename, sizeof(filename), udev_list_entry_get_name(entry), "/uevent", NULL); - fd = open(filename, O_WRONLY); + fd = open(filename, O_WRONLY|O_CLOEXEC); if (fd < 0) continue; if (write(fd, action, strlen(action)) < 0) |