Call sanitize_path() with updated args.
authorWayne Davison <wayned@samba.org>
Wed, 11 Aug 2004 23:41:03 +0000 (23:41 +0000)
committerWayne Davison <wayned@samba.org>
Wed, 11 Aug 2004 23:41:03 +0000 (23:41 +0000)
options.c

index d7d22af..805b9e1 100644 (file)
--- a/options.c
+++ b/options.c
@@ -728,17 +728,17 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
        if (sanitize_paths) {
                int i;
                for (i = *argc; i-- > 0; )
-                       (*argv)[i] = sanitize_path(NULL, (*argv)[i], NULL);
+                       (*argv)[i] = sanitize_path(NULL, (*argv)[i], "", 0);
                if (tmpdir)
-                       tmpdir = sanitize_path(NULL, tmpdir, "");
+                       tmpdir = sanitize_path(NULL, tmpdir, NULL, 0);
                if (partial_dir)
-                       partial_dir = sanitize_path(NULL, partial_dir, "");
+                       partial_dir = sanitize_path(NULL, partial_dir, NULL, 0);
                if (compare_dest)
-                       compare_dest = sanitize_path(NULL, compare_dest, "");
+                       compare_dest = sanitize_path(NULL, compare_dest, NULL, 0);
                if (backup_dir)
-                       backup_dir = sanitize_path(NULL, backup_dir, "");
+                       backup_dir = sanitize_path(NULL, backup_dir, NULL, 0);
                if (files_from)
-                       files_from = sanitize_path(NULL, files_from, "");
+                       files_from = sanitize_path(NULL, files_from, NULL, 0);
        }
        if (server_exclude_list.head && !am_sender) {
                struct exclude_list_struct *elp = &server_exclude_list;