Call push_dir() with its new boolean arg.
authorWayne Davison <wayned@samba.org>
Sun, 8 Oct 2006 20:57:01 +0000 (20:57 +0000)
committerWayne Davison <wayned@samba.org>
Sun, 8 Oct 2006 20:57:01 +0000 (20:57 +0000)
clientserver.c
flist.c

index 00c492b..5e8ae52 100644 (file)
@@ -503,7 +503,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
                        return -1;
                }
 
-               if (!push_dir("/")) {
+               if (!push_dir("/", 0)) {
                        rsyserr(FLOG, errno, "chdir %s failed\n",
                                lp_path(i));
                        io_printf(f_out, "@ERROR: chdir failed\n");
@@ -511,7 +511,7 @@ static int rsync_module(int f_in, int f_out, int i, char *addr, char *host)
                }
 
        } else {
-               if (!push_dir(lp_path(i))) {
+               if (!push_dir(lp_path(i), 0)) {
                        rsyserr(FLOG, errno, "chdir %s failed\n",
                                lp_path(i));
                        io_printf(f_out, "@ERROR: chdir failed\n");
diff --git a/flist.c b/flist.c
index 979090e..16c95ab 100644 (file)
--- a/flist.c
+++ b/flist.c
@@ -1073,7 +1073,7 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
        if (filesfrom_fd >= 0) {
                if (sanitize_paths)
                        die_on_unsafe_path(argv[0], 0);
-               if (argv[0] && !push_dir(argv[0])) {
+               if (argv[0] && !push_dir(argv[0], 0)) {
                        rsyserr(FERROR, errno, "push_dir %s failed",
                                full_fname(argv[0]));
                        exit_cleanup(RERR_FILESELECT);
@@ -1211,7 +1211,7 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
 
                        strlcpy(olddir, curr_dir, sizeof olddir);
 
-                       if (!push_dir(dir)) {
+                       if (!push_dir(dir, 0)) {
                                io_error |= IOERR_GENERAL;
                                rsyserr(FERROR, errno, "push_dir %s failed",
                                        full_fname(dir));