diff options
-rw-r--r-- | udev_node.c | 8 |
1 files changed, 5 insertions, 3 deletions
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)); |