git: DragonFly_RELEASE_5_0 cpdup(1): Some improvements.

Sascha Wildner swildner at
Sat Oct 14 12:07:30 PDT 2017

commit 12214f9cfcd91a4d0c3021c41fd35fab2dd6bba4
Author: Sascha Wildner <saw at>
Date:   Sat Oct 14 21:06:14 2017 +0200

    cpdup(1): Some improvements.
    * Make cpdup retry failed rmdirs after chflags. It already does this
      for remove().
    * When deciding whether to copy a file, cpdup should ignore the
      UF_ARCHIVE file flag. If that flag is supported by the destination
      file system but it's cleared on a source file, then multiple
      invocations of cpdup would all copy the source file because its
      flags wouldn't match. OTOH, if the destination filesystem doesn't
      support UF_ARCHIVE, then there's no point in cpdup setting it.
    Submitted-by:  Will Andrews <will at>

Summary of changes:
 bin/cpdup/cpdup.c | 38 +++++++++++++++++++++++++++++++-------
 1 file changed, 31 insertions(+), 7 deletions(-)

DragonFly BSD source repository

More information about the Commits mailing list