One minor tweak to the --delete-before option-passing code.
authorWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 07:50:00 +0000 (07:50 +0000)
committerWayne Davison <wayned@samba.org>
Fri, 28 Jan 2005 07:50:00 +0000 (07:50 +0000)
options.c

index 365d3ac82b9b4349ca8e83fe84a0793bf5a8c1f6..0819309441cdc145e3154f055b028043e59deaf2 100644 (file)
--- a/options.c
+++ b/options.c
@@ -1223,7 +1223,7 @@ void server_options(char **args,int *argc)
                        args[ac++] = "--delete-excluded";
                else if (delete_before == 1 || delete_after)
                        args[ac++] = "--delete";
-               if (delete_before == 2)
+               if (delete_before > 1)
                        args[ac++] = "--delete-before";
                if (delete_during)
                        args[ac++] = "--delete-during";