Files
aaruremote/linux
Daniel Collins 04970bc72a Fix parsing of /sys/block/XXX/device symlinks. (#14)
As of c810bd8d07, I'm not able to use
aaruremote on Linux (5.10). I've tried a few machines and they all have
device sylinks like the following example from my CD dumping machine
(has a mixture of SATA and IDE drives):

/sys/block/sr0/device -> ../../../0:0:0:0
/sys/block/sr1/device -> ../../../0:0:1:0
/sys/block/sr2/device -> ../../../4:0:0:0
/sys/block/sr3/device -> ../../../1:0:0:0
/sys/block/sr4/device -> ../../../3:0:0:0
/sys/block/sr5/device -> ../../../6:0:0:0

I'm not sure how many variants of this symlink exist in Linux, but from
reading the existing code I *think* the intent was to extract the
characters from the start the of last component of the filename up to
the delimeter character (`.` or `:`), so I've reworked the code to do
that without tripping up on the `..` parts of the path.
2023-10-16 20:39:17 +01:00
..
2020-10-24 04:23:01 +01:00
2021-07-29 00:46:47 +01:00
2020-03-01 06:00:35 +00:00
2020-12-31 23:12:05 +00:00
2020-12-31 23:12:05 +00:00
2020-12-31 23:12:05 +00:00
2020-12-31 23:12:05 +00:00
2020-12-31 23:12:05 +00:00
2020-12-31 23:12:05 +00:00