aboutsummaryrefslogtreecommitdiffstats
path: root/flist.c
diff options
context:
space:
mode:
authorWayne Davison <wayned@samba.org>2007-11-20 17:37:53 -0800
committerWayne Davison <wayned@samba.org>2007-11-20 17:37:53 -0800
commit29bca53f9b6c020b5bd226b6378482a203fa7df3 (patch)
treeac880b0227d574aab35d6b2f2a8f2e3c972f9dac /flist.c
parentdc2815c1fb40ff8f40eee6e1eaf57deb7fbf1d3d (diff)
downloadandroid_external_rsync-29bca53f9b6c020b5bd226b6378482a203fa7df3.tar.gz
android_external_rsync-29bca53f9b6c020b5bd226b6378482a203fa7df3.tar.bz2
android_external_rsync-29bca53f9b6c020b5bd226b6378482a203fa7df3.zip
Got rid of the unused symlink parameter to sanitize_path().
Diffstat (limited to 'flist.c')
-rw-r--r--flist.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/flist.c b/flist.c
index 5041d699..58ef0c5d 100644
--- a/flist.c
+++ b/flist.c
@@ -671,7 +671,7 @@ static struct file_struct *recv_file_entry(struct file_list *flist,
clean_fname(thisname, 0);
if (sanitize_paths)
- sanitize_path(thisname, thisname, "", 0, NULL);
+ sanitize_path(thisname, thisname, "", 0);
if ((basename = strrchr(thisname, '/')) != NULL) {
int len = basename++ - thisname;
@@ -917,7 +917,7 @@ static struct file_struct *recv_file_entry(struct file_list *flist,
} else
read_sbuf(f, bp, linkname_len - 1);
if (sanitize_paths)
- sanitize_path(bp, bp, "", lastdir_depth, NULL);
+ sanitize_path(bp, bp, "", lastdir_depth);
}
#endif
@@ -1008,7 +1008,7 @@ struct file_struct *make_file(const char *fname, struct file_list *flist,
}
clean_fname(thisname, 0);
if (sanitize_paths)
- sanitize_path(thisname, thisname, "", 0, NULL);
+ sanitize_path(thisname, thisname, "", 0);
if (stp && S_ISDIR(stp->st_mode)) {
st = *stp; /* Needed for "symlink/." with --relative. */
@@ -1804,13 +1804,13 @@ struct file_list *send_file_list(int f, int argc, char *argv[])
if (use_ff_fd) {
if (read_line(filesfrom_fd, fbuf, sizeof fbuf, rl_flags) == 0)
break;
- sanitize_path(fbuf, fbuf, "", 0, NULL);
+ sanitize_path(fbuf, fbuf, "", 0);
} else {
if (argc-- == 0)
break;
strlcpy(fbuf, *argv++, MAXPATHLEN);
if (sanitize_paths)
- sanitize_path(fbuf, fbuf, "", 0, NULL);
+ sanitize_path(fbuf, fbuf, "", 0);
}
len = strlen(fbuf);