* Ian Darwin <[EMAIL PROTECTED]> [16.04.2007 01:56]:
> OK?
The excluded entries get readded after the next zapped list check. It
seems better to exclude them completely:
--- xtail.c.orig Mon Apr 16 11:16:06 2007
+++ xtail.c Mon Apr 16 11:24:10 2007
@@ -47,6 +47,9 @@
continue;
}
+ if (exclude_gunk_file(argv[i]))
+ continue;
+
/*
* Temporarily throw this entry onto the end of the zapped list.
*/
@@ -57,12 +60,10 @@
*/
switch (stat_entry(List_zap, last_entry(List_zap), &sbuf)) {
- case ENTRY_FILE: /* move entry to file list,
unless it's a .gz */
- if (!exclude_gunk_file(argv[i])) {
- move_entry(List_file, List_zap,
last_entry(List_zap));
- entryp->size = sbuf.st_size;
- entryp->mtime = sbuf.st_mtime;
- }
+ case ENTRY_FILE: /* move entry to file list
*/
+ move_entry(List_file, List_zap, last_entry(List_zap));
+ entryp->size = sbuf.st_size;
+ entryp->mtime = sbuf.st_mtime;
break;
case ENTRY_DIR: /* move entry to dir list
*/
And I would suggest to check for wtmp and pflog in exclude_gunk_file().
Regards,
Armin Wolfermann