projects
/
platform
/
upstream
/
systemd.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
876fa61
)
udevtest: don't try to delete symlinks
author
Kay Sievers
<kay.sievers@suse.de>
Sat, 15 Apr 2006 17:49:15 +0000
(19:49 +0200)
committer
Kay Sievers
<kay.sievers@suse.de>
Sat, 15 Apr 2006 17:49:15 +0000
(19:49 +0200)
udev_node.c
patch
|
blob
|
history
diff --git
a/udev_node.c
b/udev_node.c
index
86fdcd3
..
2a30fe3
100644
(file)
--- 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));