cpdup - Fix the sense of a uid check when files are otherwise identical
authorMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Nov 2009 04:09:05 +0000 (20:09 -0800)
committerMatthew Dillon <dillon@apollo.backplane.com>
Sat, 28 Nov 2009 04:09:05 +0000 (20:09 -0800)
commita9fa3ead8c9383459582955e51da56fe158adb14
treeeeb82f32b1456e4496a929b7b3b8939095f45027
parentfcbaaca1e7b0920b565fbdb6d6d5a13df5084ddf
cpdup - Fix the sense of a uid check when files are otherwise identical

* Fix the sense of a uid check when files are otherwise identical
  (Oliver).

* Also slightly reduce network overhead by removing unnecessary chflags
  calls when running as a user and the only differences are in the
  root-only chflags bits (Matt).

Submitted-by: Oliver Fromme <olli@fromme.com> (RunningAsRoot fix)
bin/cpdup/cpdup.c