summaryrefslogtreecommitdiff
path: root/udev_node.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2006-04-15 19:49:15 +0200
committerKay Sievers <kay.sievers@suse.de>2006-04-15 19:49:15 +0200
commitc6d4aeb930ae2da6114e551dadbed3e430b9cdf4 (patch)
tree526c5e1c289ef4da635cef68bb1dfedaf4c101f7 /udev_node.c
parent876fa61d68140f4fc9da9b98a22823587b495e80 (diff)
udevtest: don't try to delete symlinks
Diffstat (limited to 'udev_node.c')
-rw-r--r--udev_node.c8
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));