Changeset a569125 in freewrt for tools/paxmirabilis/src/ftree.c
- Timestamp:
- Feb 16, 2012, 10:14:16 PM (14 years ago)
- Branches:
- freewrt_1_0, freewrt_2_0
- Children:
- 7417b08
- Parents:
- 3784d08
- File:
-
- 1 edited
-
tools/paxmirabilis/src/ftree.c (modified) (7 diffs)
Legend:
- Unmodified
- Added
- Removed
-
tools/paxmirabilis/src/ftree.c
r3784d08 ra569125 1 /* $OpenBSD: ftree.c,v 1.2 7 2006/12/26 20:58:25 ottoExp $ */1 /* $OpenBSD: ftree.c,v 1.29 2009/10/27 23:59:22 deraadt Exp $ */ 2 2 /* $NetBSD: ftree.c,v 1.4 1995/03/21 09:07:21 cgd Exp $ */ 3 3 … … 48 48 #include "extern.h" 49 49 50 __SCCSID("@(#)ftree.c 8.2 (Berkeley) 4/18/94"); 51 __RCSID("$MirOS: src/bin/pax/ftree.c,v 1.3 2007/10/23 20:07:42 tg Exp $"); 50 __RCSID("$MirOS: src/bin/pax/ftree.c,v 1.5 2012/02/12 00:44:57 tg Exp $"); 52 51 53 52 /* … … 79 78 /* 80 79 * ftree_start() 81 * initiali ze the options passed to fts_open() during this run of pax80 * initialise the options passed to fts_open() during this run of pax 82 81 * options are based on the selection of pax options by the user 83 82 * fts_start() also calls fts_arg() to open the first valid file arg. We … … 165 164 ft->fname = str; 166 165 ft->refcnt = 0; 166 ft->newercnt = 0; 167 167 ft->chflg = chflg; 168 168 ft->fow = NULL; … … 210 210 211 211 /* 212 * ftree_skipped_newer() 213 * file has been skipped because a newer file exists and -u/-D given 214 */ 215 216 void 217 ftree_skipped_newer(void) 218 { 219 /* skipped due to -u/-D, mark accordingly */ 220 if (ftcur != NULL) 221 ftcur->newercnt = 1; 222 } 223 224 /* 212 225 * ftree_chk() 213 226 * called at end on pax execution. Prints all those file args that did not … … 232 245 */ 233 246 for (ft = fthead; ft != NULL; ft = ft->fow) { 234 if ((ft->refcnt > 0) || ft-> chflg)247 if ((ft->refcnt > 0) || ft->newercnt > 0 || ft->chflg) 235 248 continue; 236 249 if (wban == 0) { … … 411 424 /* 412 425 * ok got a file tree node to process. copy info into arcn 413 * structure (initiali ze as required)426 * structure (initialise as required) 414 427 */ 415 428 arcn->skip = 0;
Note:
See TracChangeset
for help on using the changeset viewer.
