mirror of
https://github.com/aaru-dps/aaruremote.git
synced 2026-09-24 15:44:34 +00:00
[PR #14] [MERGED] Fix parsing of /sys/block/XXX/device symlinks. #13
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/aaru-dps/aaruremote/pull/14
Author: @solemnwarning
Created: 10/16/2023
Status: ✅ Merged
Merged: 10/16/2023
Merged by: @claunia
Base:
devel← Head:sys-block-xxx-parsing📝 Commits (1)
c8e436bFix parsing of /sys/block/XXX/device symlinks.📊 Changes
1 file changed (+14 additions, -28 deletions)
View changed files
📝
linux/device.c(+14 -28)📄 Description
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):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.🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.