From c6d4aeb930ae2da6114e551dadbed3e430b9cdf4 Mon Sep 17 00:00:00 2001 From: Kay Sievers Date: Sat, 15 Apr 2006 19:49:15 +0200 Subject: udevtest: don't try to delete symlinks --- udev_node.c | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) (limited to 'udev_node.c') diff --git a/udev_node.c b/udev_node.c index 86fdcd3a41..2a30fe3222 100644 --- a/udev_node.c +++ b/udev_node.c @@ -249,10 +249,12 @@ void udev_node_remove_symlinks(struct udevice *udev) } info("removing symlink '%s'", filename); - unlink(filename); + if (!udev->test_run) { + unlink(filename); - if (strchr(filename, '/')) - delete_path(filename); + if (strchr(filename, '/')) + delete_path(filename); + } strlcat(symlinks, filename, sizeof(symlinks)); strlcat(symlinks, " ", sizeof(symlinks)); -- cgit v1.2.3-54-g00ecf