If the logfile cannot be opened (such as a permissions error), qlop silently returns. --- /home/grant/downloads/gentoo-projects/portage-utils/qlop.c 2005-10-31 16:39:11.000000000 -0600 +++ /var/tmp/portage/portage-utils-0.1.7/work/portage-utils-0.1.7/qlop.c 2005-11-01 14:53:02.000000000 -0600 @@ -86,8 +86,10 @@ DBG("Searching for %s in %s\n", pkg, logfile); - if ((fp = fopen(logfile, "r")) == NULL) + if ((fp = fopen(logfile, "r")) == NULL) { + warnp("Opening %s failed\n", logfile); return 1; + } while ((fgets(buf[0], sizeof(buf[0]), fp)) != NULL) { if (strstr(buf[0], pkg) == NULL)
Added the suggested fix to -projects/portage-utils. Perhaps later on we will move the error handler to where the function returns for the flags your using vs where it is now. This bug will be fixed in 0.1.8
fixed the three places in qlop cvs