summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDenys Vlasenko <vda.linux@googlemail.com>2012-02-06 00:00:00 (GMT)
committer Denys Vlasenko <vda.linux@googlemail.com>2012-02-06 00:00:00 (GMT)
commit638dbc34b3dd2a6e340a2370056913ed5770d196 (patch)
treed938284149047a54ecdaa7bab39e58f541b7ab80
parentbbf1e3c144c1ee93409a0e0546cb56b34eccfcfd (diff)
downloadbusybox-638dbc34b3dd2a6e340a2370056913ed5770d196.tar.gz
busybox-638dbc34b3dd2a6e340a2370056913ed5770d196.tar.bz2
mdev: add a comment. no code changes
Signed-off-by: Denys Vlasenko <vda.linux@googlemail.com>
-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 9765688..67de52d 100644
--- a/util-linux/mdev.c
+++ b/util-linux/mdev.c
@@ -565,8 +565,12 @@ static void make_device(char *path, int delete)
chown(node_name, rule->ugid.uid, rule->ugid.gid);
}
if (ENABLE_FEATURE_MDEV_RENAME && alias) {
- if (aliaslink == '>')
+ if (aliaslink == '>') {
+//TODO: on devtmpfs, device_name already exists and symlink() fails.
+//End result is that instead of symlink, we have two nodes.
+//What should be done?
symlink(node_name, device_name);
+ }
}
}