summaryrefslogtreecommitdiff
path: root/Base
diff options
context:
space:
mode:
authorLiav A <liavalb@gmail.com>2022-07-15 14:30:39 +0300
committerLinus Groh <mail@linusgroh.de>2022-07-19 11:02:25 +0100
commitcb900006b930498ee22b94693d84d538dec5d714 (patch)
treec55d5c8b65c7882decab530325b780042b76f4db /Base
parenta857b6297a8885519db9e908b2cccdacff4c56b3 (diff)
downloadserenity-cb900006b930498ee22b94693d84d538dec5d714.zip
Utilities/lspci: Don't unveil /res/pci.ids if not asked to resolve IDs
I tested the grub image under VirtualBox and it appeared that the image didn't have pci.ids file included in the /res directory. In that case it would be expected that lspci can still function correctly if the -n parameter is passed, but then the unveil syscall failed because the file didn't exist. To cope with this, we should allow lspci to work without the pci.ids file being present at the filesystem, so let's not unveil this file if the -n parameter is passed.
Diffstat (limited to 'Base')
-rw-r--r--Base/usr/share/man/man8/lspci.md5
1 files changed, 5 insertions, 0 deletions
diff --git a/Base/usr/share/man/man8/lspci.md b/Base/usr/share/man/man8/lspci.md
index 3237cc5e70..8816b7902b 100644
--- a/Base/usr/share/man/man8/lspci.md
+++ b/Base/usr/share/man/man8/lspci.md
@@ -13,6 +13,11 @@ $ lspci
lspci is a utility for displaying information about PCI buses in the system
and devices connected to them. It shows a brief list of devices.
+## Options
+
+* `-n`, `--numerical`: Don't try to resolve numerical PCI IDs. This is useful when
+there is a need to see the actual PCI IDs, or if `/res/pci.ids` file is not available.
+
## Files
* `/sys/bus/pci` - source of the PCI devices list.