# HG changeset patch # User Felix Janda # Date 1374911140 -7200 # Node ID f84dd34732339517a685495d648bd27dec1918c7 # Parent afcc2879917270cc9794d279786abf00a673deff Fix lspci -e diff -r afcc28799172 -r f84dd3473233 toys/pending/lspci.c --- a/toys/pending/lspci.c Fri Jul 26 18:23:08 2013 -0500 +++ b/toys/pending/lspci.c Sat Jul 27 09:45:40 2013 +0200 @@ -36,7 +36,7 @@ int fd, size; if ((fd = openat(dirfd, *fields, O_RDONLY)) < 0) continue; - size = 6 + 2*((toys.optflags & FLAG_e) && (p != toybuf)); + size = ((toys.optflags & FLAG_e) && (p == toybuf)) ? 8 : 6; p[read(fd, p, size)] = '\0'; close(fd); }