Changeset a569125 in freewrt for tools/paxmirabilis/src/ftree.c


Ignore:
Timestamp:
Feb 16, 2012, 10:14:16 PM (14 years ago)
Author:
Thorsten Glaser <tg@…>
Branches:
freewrt_1_0, freewrt_2_0
Children:
7417b08
Parents:
3784d08
Message:

even FreeWRT 1.0-stable deserves paxmirabilis-20120216 compiled with LTO ☺

git-svn-id: svn://www.freewrt.org/branches/freewrt_1_0@3981 afb5a338-a214-0410-bd46-81f09a774fd1

File:
1 edited

Legend:

Unmodified
Added
Removed
  • tools/paxmirabilis/src/ftree.c

    r3784d08 ra569125  
    1 /*      $OpenBSD: ftree.c,v 1.27 2006/12/26 20:58:25 otto Exp $ */
     1/*      $OpenBSD: ftree.c,v 1.29 2009/10/27 23:59:22 deraadt Exp $      */
    22/*      $NetBSD: ftree.c,v 1.4 1995/03/21 09:07:21 cgd Exp $    */
    33
     
    4848#include "extern.h"
    4949
    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 $");
    5251
    5352/*
     
    7978/*
    8079 * ftree_start()
    81  *      initialize the options passed to fts_open() during this run of pax
     80 *      initialise the options passed to fts_open() during this run of pax
    8281 *      options are based on the selection of pax options by the user
    8382 *      fts_start() also calls fts_arg() to open the first valid file arg. We
     
    165164        ft->fname = str;
    166165        ft->refcnt = 0;
     166        ft->newercnt = 0;
    167167        ft->chflg = chflg;
    168168        ft->fow = NULL;
     
    210210
    211211/*
     212 * ftree_skipped_newer()
     213 *      file has been skipped because a newer file exists and -u/-D given
     214 */
     215
     216void
     217ftree_skipped_newer(void)
     218{
     219        /* skipped due to -u/-D, mark accordingly */
     220        if (ftcur != NULL)
     221                ftcur->newercnt = 1;
     222}
     223
     224/*
    212225 * ftree_chk()
    213226 *      called at end on pax execution. Prints all those file args that did not
     
    232245         */
    233246        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)
    235248                        continue;
    236249                if (wban == 0) {
     
    411424                /*
    412425                 * ok got a file tree node to process. copy info into arcn
    413                  * structure (initialize as required)
     426                 * structure (initialise as required)
    414427                 */
    415428                arcn->skip = 0;
Note: See TracChangeset for help on using the changeset viewer.