ref: 849ba78ff89f5e34c753c2d371030ed4a95c08d0
parent: fe54900b9cf8011886a920db6eac68d45e87f9bb
author: Ori Bernstein <[email protected]>
date: Fri Dec 6 01:44:11 EST 2019
failure to read is a mismatch. no need to return -1.
--- a/walk.c
+++ b/walk.c
@@ -165,9 +165,9 @@
if(!d)
return 0;
if((fd = open(qf, OREAD)) == -1)
- return -1;
+ return 0;
if((n = readn(fd, indexqid, sizeof(indexqid) - 1)) == -1)
- return -1;
+ return 0;
indexqid[n] = 0;
close(fd);
if((p = strpbrk(indexqid, " \t\n\r")) != nil)