[PATCH] lsscsi: Fix xchdir(".."); from symlink in /sys/bus/scsi/devices

Markus Gothe nietzsche at lysator.liu.se
Sat Oct 21 17:21:30 UTC 2017


This patch fixes a bug when having more than 1 device exposed by the SCSI-layer, notably USB-disks, which creates entries like this.
lrwxrwxrwx    1         0 Oct 20 14:52 1:0:0:0 -> ../../../devices/platform/xhci-hcd/usb1/1-2/1-2:1.0/host1/target1:0:0/1:0:0:0

//Markus - The panama-hat hacker

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20171021/a5f443e6/attachment.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: lsscsi.patch
Type: application/octet-stream
Size: 707 bytes
Desc: not available
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20171021/a5f443e6/attachment.obj>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20171021/a5f443e6/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 824 bytes
Desc: Message signed with OpenPGP using GPGMail
URL: <http://lists.busybox.net/pipermail/busybox/attachments/20171021/a5f443e6/attachment.asc>


More information about the busybox mailing list