mirror of
https://github.com/systemd/systemd.git
synced 2025-03-22 06:50:18 +03:00
[PATCH] udev - correct relative symlink
Here we remove the useless leading "./" of the linktargets. Thanks to Olaf Hering <olh@suse.de>, who asked why we do this :) We have now: /udev |-- camera0 -> video0 |-- kamera0 -> video0 `-- video0
This commit is contained in:
parent
8481f8ce2b
commit
49f9bede7c
@ -251,8 +251,6 @@ static int create_node(struct udevice *dev, int fake)
|
||||
i++;
|
||||
}
|
||||
|
||||
if (linktarget[0] == '\0')
|
||||
strfieldcpy(linktarget, "./");
|
||||
strfieldcat(linktarget, &dev->name[tail]);
|
||||
|
||||
/* unlink existing files to ensure that our symlink is created */
|
||||
|
Loading…
x
Reference in New Issue
Block a user