udevtest: don't try to delete symlinks

This commit is contained in:
Kay Sievers 2006-04-15 19:49:15 +02:00
parent 876fa61d68
commit c6d4aeb930

View file

@ -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));