Moved the sanitizing of the --*-dest args into main.c.
authorWayne Davison <wayned@samba.org>
Fri, 28 Apr 2006 16:57:39 +0000 (16:57 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 28 Apr 2006 16:57:39 +0000 (16:57 +0000)
options.c

index c6d062a70a7b5a04cc10aa69ed5f5fb703b76687..ee7b5222847f4d17597839cea6f163a793e97d9c 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1048,10 +1048,9 @@ int parse_arguments(int *argc, const char ***argv, int frommain)
                                        MAX_BASIS_DIRS, dest_option);
                                return 0;
                        }
-                       arg = poptGetOptArg(pc);
-                       if (sanitize_paths)
-                               arg = sanitize_path(NULL, arg, NULL, 0);
-                       basis_dir[basis_dir_cnt++] = (char *)arg;
+                       /* We defer sanitizing this arg until we know what
+                        * our destination directory is going to be. */
+                       basis_dir[basis_dir_cnt++] = (char *)poptGetOptArg(pc);
                        break;
 
                case OPT_CHMOD: