aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--util-linux/mdev.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/util-linux/mdev.c b/util-linux/mdev.c
index 976568814..67de52d06 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -565,8 +565,12 @@ static void make_device(char *path, int delete)
565 chown(node_name, rule->ugid.uid, rule->ugid.gid); 565 chown(node_name, rule->ugid.uid, rule->ugid.gid);
566 } 566 }
567 if (ENABLE_FEATURE_MDEV_RENAME && alias) { 567 if (ENABLE_FEATURE_MDEV_RENAME && alias) {
568 if (aliaslink == '>') 568 if (aliaslink == '>') {
569//TODO: on devtmpfs, device_name already exists and symlink() fails.
570//End result is that instead of symlink, we have two nodes.
571//What should be done?
569 symlink(node_name, device_name); 572 symlink(node_name, device_name);
573 }
570 } 574 }
571 } 575 }
572 576