mirror of
https://github.com/fastfetch-cli/fastfetch.git
synced 2026-09-13 02:42:09 +02:00
PhysicalDisk (OpenBSD): honors namePrefix
This commit is contained in:
@@ -26,6 +26,14 @@ const char* ffDetectPhysicalDisk(FFlist* result, FFPhysicalDiskOptions* options)
|
||||
*colon = '\0';
|
||||
}
|
||||
|
||||
if (options->namePrefix.length && !ffStrbufStartsWith(&(FFstrbuf) {
|
||||
.chars = diskName,
|
||||
.length = (uint32_t) len,
|
||||
},
|
||||
&options->namePrefix)) {
|
||||
continue;
|
||||
}
|
||||
|
||||
char* devPath = NULL;
|
||||
FF_AUTO_CLOSE_FD int f = opendev(diskName, O_RDONLY, OPENDEV_PART, &devPath);
|
||||
if (f < 0) {
|
||||
|
||||
Reference in New Issue
Block a user