Wayne Davison
dd589118d0
- Set config_file to a default filename if it is NULL.
...
- Changed create_pid_file() to fail if the pidfile already exists,
which makes the daemon exit with an error.
- Output errors about a failure to open the config file or the lock
file to (a still open) stderr.
- We now notice (and complain) if fork() fails.
2007-10-01 02:25:54 +00:00
Wayne Davison
f92e15efd5
Mention the latest way to specify multiple remote args.
2007-09-30 07:46:28 +00:00
Wayne Davison
4f3c1df6c3
Made list more complete.
2007-09-30 07:34:33 +00:00
Wayne Davison
eb8f5c74e1
Got rid of some SPACE-TAB sequencs in the indentation.
2007-09-30 07:30:48 +00:00
Wayne Davison
a960239f39
Allow additional remote args to contain an identical hostname instead
...
of requiring it to be empty. This allows for the easy use of braces:
rsync -av host:file{1,2} /dest/
2007-09-30 07:14:16 +00:00
Wayne Davison
5621e5105a
Moved become_daemon() into clientserver.c.
2007-09-30 06:57:12 +00:00
Wayne Davison
a1d2685b08
- Moved become_daemon() here from socket.c and made it static.
...
- Call lp_load() before we call become_daemon().
- Output an error to stderr if we fail to open/parse the config file.
- Added a create_pid_file() static function and call it earlier in
the startup sequence.
2007-09-30 06:57:07 +00:00
Wayne Davison
0f6b4909db
Improved --acls, --xattrs, and --fake-super.
2007-09-29 17:01:01 +00:00
Wayne Davison
b0ca7d2500
Specify a better SMB_ACL_VALID_NAME_BITS value for OS X.
2007-09-29 16:06:40 +00:00
Wayne Davison
7ed6bc53b9
Added get_xattr_acl(), set_xattr_acl(), and del_def_xattr_acl().
2007-09-29 16:06:37 +00:00
Wayne Davison
f57ab2f718
When running with --fake-super, get/put ACLs from/to an xattr and don't
...
range-check the incoming values.
2007-09-29 16:06:34 +00:00
Wayne Davison
5ebb7935d2
Tweaked a variable name.
2007-09-29 04:35:26 +00:00
Wayne Davison
c50a9076e1
Added support for OS X testing using chmod +a and ls.
2007-09-29 02:26:23 +00:00
Wayne Davison
d417c51669
- Added OS X ACL support.
...
- Simplified some of the ge/set calling sequences.
- Got rid of SMB_ACL_PERMSET_T.
2007-09-28 21:54:11 +00:00
Wayne Davison
5b934f5133
Added OS X ACL support, using slightly tweaked sys_acl_*()
...
functions.
2007-09-28 21:54:07 +00:00
Wayne Davison
49ea69b3ff
We enable ACL compilation on OS X by default now.
2007-09-28 21:54:01 +00:00
Wayne Davison
578219bed5
Determine the previous version number in a more reasonable fashion.
2007-09-26 17:43:57 +00:00
Wayne Davison
2e4a3d17b4
Some improvements and fixes for the upcoming release.
2007-09-26 14:57:52 +00:00
Wayne Davison
b4b24520f6
Added (conditional) include of stdint.h.
2007-09-23 22:31:14 +00:00
Wayne Davison
13710874ce
Changed "statx" to "stat_x" to try to work around a build problem on AIX.
2007-09-23 22:19:55 +00:00
Wayne Davison
7341ee2dfd
Fixed a crash bug in get_local_name() when the file list is empty.
2007-09-23 21:54:03 +00:00
Wayne Davison
e0cfd15bcc
Fixed a glitch in the sending of mount-point dirs in inc_recurse mode.
2007-09-23 21:46:51 +00:00
Wayne Davison
5a47354882
Added a stub function for make_bak_dir().
2007-09-23 21:05:15 +00:00
Wayne Davison
f5b532b144
Added an option to copy_file() that tells it to try to make a
...
backup directory if the open of the dest file fails.
2007-09-23 21:03:46 +00:00
Wayne Davison
c0dba635ba
The --inplace code now properly handles creating a backup when
...
the --whole-file and/or --read-batch options are specified.
2007-09-23 21:03:41 +00:00
Wayne Davison
e1ac7791fe
Changed make_bak_dir() to take a const char *.
2007-09-23 21:03:38 +00:00
Wayne Davison
5b3f6a2730
Use make_bak_dir() if we get ENOENT while trying to open an
...
inplace backup file.
2007-09-23 19:45:22 +00:00
Wayne Davison
f203266889
Made make_bak_dir() global.
2007-09-23 19:45:19 +00:00
Wayne Davison
21914d8135
Made clean_flist() only duplicate *_DIR_* flags on a dropped dir
...
when the kept entry is also a dir.
2007-09-23 19:45:00 +00:00
Wayne Davison
200aec7db4
Avoid a checker warning about unfreed memory.
2007-09-23 19:10:10 +00:00
Wayne Davison
a15c4b38b5
Fix a glitch in the handling of the last path element in a -R path
...
with a trailing slash.
2007-09-23 16:02:33 +00:00
Wayne Davison
40e383765a
- Don't allow -x to drop implied directories.
...
- Improved the code that tries to avoid scanning the same dir
twice in a row to not drop any relnamecache entries.
2007-09-23 15:46:11 +00:00
Wayne Davison
5441088298
Added the relnamecache structure and improved some variable names.
2007-09-23 14:35:12 +00:00
Wayne Davison
d0a6cdb62e
Make sure that the dirs we are merging have the same timestamps.
2007-09-23 02:18:57 +00:00
Wayne Davison
19531e1f74
Got rid of some unneeded externs.
2007-09-23 02:03:20 +00:00
Wayne Davison
6f0805f564
Moved list-only output from flist.c to generator.c so that it works
...
properly even in inc_recurse mode. Got rid of double output, weird
output order, and outputting of implied dirs w/--no-implied-dirs.
2007-09-23 02:00:53 +00:00
Wayne Davison
6191429b50
Added a missing "void" to the arg-spec of setup_iconv().
2007-09-23 01:18:03 +00:00
Wayne Davison
89b76bac1f
Added a test to make sure that merging relative items continues to
...
work right.
2007-09-23 00:30:40 +00:00
Wayne Davison
0758b2db30
Document the change to how --releative works.
2007-09-22 22:57:50 +00:00
Wayne Davison
74db1f1498
Always send implied dirs as dirs.
2007-09-22 22:37:52 +00:00
Wayne Davison
4f802c6637
Fixed a just-introduced glitch in directory creation with --no-implied-dirs.
2007-09-22 21:51:08 +00:00
Wayne Davison
33a04593ee
We now forward the --no-implied-dirs option to the receiving side,
...
just in case we end up talking protocol 30 in inc_recurse mode.
2007-09-22 21:43:19 +00:00
Wayne Davison
6303f9a25f
The latest --relative --no-implied-dirs code in inc_recurse mode
...
sends us a normal sequence of dirs, and we just skip the implied
ones.
2007-09-22 21:43:15 +00:00
Wayne Davison
3932c42373
Using relative with incremental recursion now results in a normal
...
sequence of directories in the hierarchy, and works properly when
merging things from multiple sources.
2007-09-22 21:43:11 +00:00
Wayne Davison
bc5df0f4e6
Fixed name of PTR_EXTRA_CNT (was PTR_EXTRA_LEN).
2007-09-22 21:43:08 +00:00
Wayne Davison
4b163f00c2
- Incremented the SUBPROTOCOL_VERSION to 9.
...
- Fixed name of PTR_EXTRA_CNT (was PTR_EXTRA_LEN).
- Added F_DIR_RELS_P() to support --relative in inc_recurse mode.
2007-09-22 21:43:05 +00:00
Wayne Davison
f07992739a
Added ifuncs.h.
2007-09-22 18:07:44 +00:00
Wayne Davison
c605c2cdbd
Tweaked opening comments.
2007-09-22 18:07:17 +00:00
Wayne Davison
1b42f628f4
Moved inline functions from rsync.h into ifuncs.h.
2007-09-22 16:52:58 +00:00
Wayne Davison
5dafe360de
Moving inline functions into its own .h file.
2007-09-22 16:46:49 +00:00