diff options
author | Kay Sievers <kay@vrfy.org> | 2014-06-04 14:09:31 +0200 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2014-06-04 14:09:31 +0200 |
commit | 10fab50a3091e0b819c3ddab5a7c07acf750c050 (patch) | |
tree | 6f81b786232753465d3e510375897d1e68280b82 /src/udev/udevd.c | |
parent | ede344452a54e1c53f541cad12a06269a4fe96a9 (diff) |
udev: guard REREADP logic with open(O_ECXL)
Diffstat (limited to 'src/udev/udevd.c')
-rw-r--r-- | src/udev/udevd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/udevd.c b/src/udev/udevd.c index 763062f219..d79891a7ca 100644 --- a/src/udev/udevd.c +++ b/src/udev/udevd.c @@ -754,7 +754,7 @@ static int synthesize_change(struct udev_device *dev) { * The kernel will send out a change event for the disk, and * "remove/add" for all partitions. */ - fd = open(udev_device_get_devnode(dev), O_RDONLY|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK); + fd = open(udev_device_get_devnode(dev), O_RDONLY|O_EXCL|O_CLOEXEC|O_NOFOLLOW|O_NONBLOCK); if (fd >= 0) { r = ioctl(fd, BLKRRPART, 0); close(fd); |