summaryrefslogtreecommitdiffstats
path: root/usb.c
diff options
context:
space:
mode:
authorThierry Vignaud <tvignaud@mandriva.org>2002-11-05 14:27:39 +0000
committerThierry Vignaud <tvignaud@mandriva.org>2002-11-05 14:27:39 +0000
commit00c56d093d9c70c877ac32afa4cb8b3e4f2e65c3 (patch)
treedc09fffb9743d193c4aaef0b4915342c3121a06a /usb.c
parent4e4a7b507884e083b639077ecd029080412a217e (diff)
downloadldetect-00c56d093d9c70c877ac32afa4cb8b3e4f2e65c3.tar
ldetect-00c56d093d9c70c877ac32afa4cb8b3e4f2e65c3.tar.gz
ldetect-00c56d093d9c70c877ac32afa4cb8b3e4f2e65c3.tar.bz2
ldetect-00c56d093d9c70c877ac32afa4cb8b3e4f2e65c3.tar.xz
ldetect-00c56d093d9c70c877ac32afa4cb8b3e4f2e65c3.zip
fix access check
Diffstat (limited to 'usb.c')
-rw-r--r--usb.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/usb.c b/usb.c
index 5739fff..e667a5d 100644
--- a/usb.c
+++ b/usb.c
@@ -17,7 +17,7 @@ extern struct pciusb_entries usb_probe(void) {
struct pciusb_entries r;
struct pciusb_entry *e = NULL;
r.nb = 0;
- if (access(proc_pci_path, R_OK) != 0) {
+ if (access(proc_usb_path, R_OK) != 0) {
r.entries = NULL;
return r;
}