summaryrefslogtreecommitdiff
path: root/udev/udev-node.c
diff options
context:
space:
mode:
authorMichael Thayer <Michael.Thayer@sun.com>2010-05-01 17:28:08 +0200
committerKay Sievers <kay.sievers@vrfy.org>2010-05-01 17:29:24 +0200
commitc00b776880142a17de001e5df4f27283c9f0d279 (patch)
treea4faea023ab51ab17bfb1b00264749838a86416a /udev/udev-node.c
parentc0b19a171794d92b68414a91c3bc804e22528142 (diff)
fix device node deletion
Signed-off-by: Michael Thayer <michael.thayer@sun.com>
Diffstat (limited to 'udev/udev-node.c')
-rw-r--r--udev/udev-node.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/udev/udev-node.c b/udev/udev-node.c
index 5c1b04b86c..780cd707c7 100644
--- a/udev/udev-node.c
+++ b/udev/udev-node.c
@@ -428,7 +428,7 @@ int udev_node_remove(struct udev_device *dev)
}
util_strscpyl(filename, sizeof(filename), LIBEXECDIR "/devices", &devnode[strlen(udev_get_dev_path(udev))], NULL);
- if (stat(filename, &stats) == 0 || stats.st_rdev == udev_device_get_devnum(dev)) {
+ if (stat(filename, &stats) == 0 && stats.st_rdev == udev_device_get_devnum(dev)) {
info(udev, "static device entry found '%s', skip removal\n", devnode);
goto out;
}