--- portage-utils-cvs/qcheck.c 2007-04-08 15:38:14.000000000 -0700 +++ portage-utils-cvs-bugfixes/qcheck.c 2007-04-08 15:52:49.000000000 -0700 @@ -41,7 +41,7 @@ char chk_hash = 1; char chk_mtime = 1; struct stat st; - size_t num_files, num_files_ok, num_files_unknown, num_files_ignored = 0; + size_t num_files, num_files_ok, num_files_unknown, num_files_ignored; char buf[_Q_PATH_MAX], filename[_Q_PATH_MAX]; char buffer[_Q_PATH_MAX]; @@ -101,7 +101,7 @@ if ((fp = fopen(buf, "r")) == NULL) continue; strncat(buf, "~", sizeof(buf)); - num_files = num_files_ok = num_files_unknown = 0; + num_files = num_files_ok = num_files_unknown = num_files_ignored = 0; printf("%sing %s%s/%s%s ...\n", (qc_update ? "Updat" : "Check"), GREEN, dentry->d_name, de->d_name, NORM); @@ -162,11 +162,8 @@ } hashed_file = (char*)hash_file(e->name, hash_algo); if (!hashed_file) { - if (qc_update) { + if (qc_update) fputs(buffer, fpx); - if (!verbose) - continue; - } printf(" %sPERM %4o%s: %s\n", RED, (st.st_mode & 07777), NORM, e->name); ++num_files_unknown; free(hashed_file);