History log of /dragonfly/bin/cpdup/cpdup.c (Results 51 – 63 of 63)
Revision (<<< Hide revision tags) (Show revision tags >>>) Date Author Comments
# 58860d7d 25-Aug-2004 Matthew Dillon <dillon@dragonflybsd.org>

Minor cleanups. Also, change various exit(10) codes to exit(1).

Submitted-by: "Douwe Kiela" <virtus@wanadoo.nl>


# fce2564b 22-Jul-2004 Jeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>

Mark filescope functions static.

Found by: cscout


# 9045ed80 22-Jul-2004 Jeroen Ruigrok/asmodai <asmodai@dragonflybsd.org>

Garbage collect two unused variables (SaveFs, CountCopiedBytes).

Found by: cscout


# 4d2076d3 09-Jun-2004 Chris Pressey <cpressey@dragonflybsd.org>

Add -u option to cpdup(1), which causes its -v[vv] logging output to
stdout to be line-buffered instead of fully buffered.

Approved-by: dillon


# 1c755102 19-Mar-2004 Chris Pressey <cpressey@dragonflybsd.org>

Clean up the code in bin/ to reduce warnings from GCC3.

Stage 3 of 5 or so: cleanups to cp, cpdup, and date.
- Add ``const'' to appropriate variable declarations and casts.
- Convert ``quad'' types

Clean up the code in bin/ to reduce warnings from GCC3.

Stage 3 of 5 or so: cleanups to cp, cpdup, and date.
- Add ``const'' to appropriate variable declarations and casts.
- Convert ``quad'' types to ``long long''.
- Convert appropriate ``int'' types to ``size_t'' and ``dev_t''.
- Rename functions/variables to not conflict with globals.
- Add/remove function prototypes and #includes as appropriate.
- Split a long string constant.
- Convert K&R style declarations to ANSI style.

Submitted-by: Simon 'corecode' Schubert <corecode@fs.ei.tum.de>

show more ...


# c0d18d1d 01-Dec-2003 Matthew Dillon <dillon@dragonflybsd.org>

Do not require -i0 when -o is used.


# 3a42736d 01-Dec-2003 Matthew Dillon <dillon@dragonflybsd.org>

Add cpdup to /bin (not /usr/bin), so we can start using it during boot
to simplify things like diskless booting.


# b58f1e66 15-Jan-2011 Sascha Wildner <saw@online.de>

Add __printflike's where possible and fix all related bugs & issues.


# c0538630 19-Jul-2010 Matthew Dillon <dillon@apollo.backplane.com>

cpdup - Add several new features

* Add -R option for ssh authorized_key based slave mode.
* Add byte order detection and handling.
* Improve remote directory scan performance.
* Add Sun compatibilit

cpdup - Add several new features

* Add -R option for ssh authorized_key based slave mode.
* Add byte order detection and handling.
* Improve remote directory scan performance.
* Add Sun compatibility files for completeness.

Submitted-by: Oliver Fromme <olli@fromme.com>

show more ...


# 8ac50aa3 25-Mar-2010 Matthew Dillon <dillon@apollo.backplane.com>

cpdup - Fix bug where cpdup sometimes does not remove files on target

* Fix a bug introduced in a recent commit which caused cpdup to sometimes
not remove files on the target which were removed fr

cpdup - Fix bug where cpdup sometimes does not remove files on target

* Fix a bug introduced in a recent commit which caused cpdup to sometimes
not remove files on the target which were removed from the source.

Submitted-by: Oliver Fromme <check+kzu4p100rs0rfx01@fromme.com>

show more ...


# 1bcaecda 02-Mar-2010 Matthew Dillon <dillon@apollo.backplane.com>

cpdup - Add -VV to ignore mtime

* The cpdup -V option verifies the contents of the files even if the
mtime is the same, but also (currently) recopies the file without
bothering to verify the con

cpdup - Add -VV to ignore mtime

* The cpdup -V option verifies the contents of the files even if the
mtime is the same, but also (currently) recopies the file without
bothering to verify the contents if the mtime is different, even if
the contents is the same.

* Add an extension, -VV, which verifies the contents of the file and
ignores mtime entirely. A copy is only made if the ownerchip,
flags, modes, or content differs.

show more ...


# 293141b7 03-Dec-2009 Matthew Dillon <dillon@apollo.backplane.com>

cpdup - Multiple additions, fixes, and one removal

* Make -x/-X (cpignore) work with remote sources.

* Add Makefile hack for _ST_FLAGS_PRESENT_ on FreeBSD.

* Suppress "Handshaked with <host>" and

cpdup - Multiple additions, fixes, and one removal

* Make -x/-X (cpignore) work with remote sources.

* Add Makefile hack for _ST_FLAGS_PRESENT_ on FreeBSD.

* Suppress "Handshaked with <host>" and "Not running as root"
messages when the -q option was specified.

* Mount points are now skipped completely. (Before this,
the directories and .cpignore inside them were still read.)

* Extract scanning directories (src and dst) from DoCopy() into
a function ScanDir(), and use ScanDir() for both src and dst.

* Remove threads support. It never worked very well and is
getting in the way of new development. The intention is to
develop a more efficient pipelined algorithm in the future
which does not require threading the program.

* Use getopt(3) instead of non-standard parser, making sure
that all options still work exactly as documented in the
manual page.

* Use fnmatch(3) instead of WildCmp(), adding support for
bracket expressions (e.g. [xyz0-9]) and escaping (e.g. foo\*).
I also suspect that fnmatch() is more efficient.

* Use the same syntax for remote paths as scp(1), so local paths
that contain colons can be specified (e.g. "./foo:bar");
extract that code into its own function SplitRemote().

* Add protocol commands hc_geteuid() and hc_getgroups().
Use them to properly check permissions for various operations
that would require root privileges on the target machine.

* Bugfix: If a symlink already existed on the target but the
owner/group didn't match, cpdup missed to update it.
Added a call to hc_lchown() to fix that, if privileges allow.

* Bugfix: The dispatch[] array wasn't initialized, so the slave
crashed upon an unknown command instead of calling rc_badop().

* Bump protocol version to 3 in order to be able to maintain
backwards compatibility with older clients.

* Bump utility version to 1.16.

* Make the source compile with WARNS=6.
It still doesn't pass -ansi -pedantic, though. :-)

* Document -j0, -k and -K in usage message (misc.c).

* Update the manual page, fix mdoc markup and various details.

* Add "ssh security tips" section to the BACKUPS text file.

Submitted-by: Oliver Fromme <olli@fromme.com>

show more ...


# a9fa3ead 28-Nov-2009 Matthew Dillon <dillon@apollo.backplane.com>

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 remo

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)

show more ...


123