summaryrefslogtreecommitdiff
path: root/rsync.h
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2008-03-30 15:40:34 -0700
committerWayne Davison <wayned@samba.org>2008-03-30 15:44:46 -0700
commit29a89172f77ed76dcf53612e96dc35daf15d7362 (patch)
treecadcb5daf227d3196d1492cc8d8f1a616412b3de /rsync.h
parent20893751791a1bb7417b9fa72e91c909619bca6a (diff)
downloadrsync-29a89172f77ed76dcf53612e96dc35daf15d7362.tar.gz
Improved the chdir() code:
- Renamed push_dir() to change_dir() and revised it a little so that it can chdir() to a relative path without an intervening chdir() back to the staring path. - Renamed push_pathname() to change_pathname() and revised it to take different args and to only call path_is_daemon_excluded() on a new path (not a revisit of a file's already-checked path). - Fixed change_pathname() to set the right pathname value when a chdir() call fails. - Set orig_dir once outside of the change_pathname() function. - Got rid of pop_dir().
Diffstat (limited to 'rsync.h')
-rw-r--r--rsync.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/rsync.h b/rsync.h
index 5d153610..e52e66aa 100644
--- a/rsync.h
+++ b/rsync.h
@@ -199,6 +199,9 @@
#define SP_DEFAULT 0
#define SP_KEEP_DOT_DIRS (1<<0)
+#define CD_NORMAL 0
+#define CD_SKIP_CHDIR 1
+
/* Log-message categories. FLOG only goes to the log file, not the client;
* FCLIENT is the opposite. */
enum logcode {