diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-19 18:55:10 +0200 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2010-04-19 18:55:10 +0200 |
commit | 9355f324e11c4b9ffdbfe2eaf73891ba01b80a0e (patch) | |
tree | c118d733d4c2f910b989955373c22e37cb13eeda /udev | |
parent | 8b56bada9a9d9a73af06d27634e53648be0cc612 (diff) |
add O_NOFOLLOW when creating files in link stack
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-node.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-node.c b/udev/udev-node.c index 34de268464..2a2c2cf0b4 100644 --- a/udev/udev-node.c +++ b/udev/udev-node.c @@ -323,7 +323,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, 0444); + fd = open(filename, O_WRONLY|O_CREAT|O_NOFOLLOW, 0444); if (fd >= 0) close(fd); else |