From 9eaba7266ce34f4344e900dce91c9a744f865036 Mon Sep 17 00:00:00 2001 From: Wayne Davison Date: Sun, 12 Apr 2009 12:57:31 -0700 Subject: [PATCH] Don't allow --remove-s*-files with --read-batch. --- options.c | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/options.c b/options.c index aed912d7..d4a0f8f6 100644 --- a/options.c +++ b/options.c @@ -1854,6 +1854,12 @@ int parse_arguments(int *argc_p, const char ***argv_p) "--read-batch cannot be used with --files-from\n"); return 0; } + if (read_batch && remove_source_files) { + snprintf(err_buf, sizeof err_buf, + "--read-batch cannot be used with --remove-%s-files\n", + remove_source_files == 1 ? "source" : "sent"); + return 0; + } if (batch_name && strlen(batch_name) > MAX_BATCH_NAME_LEN) { snprintf(err_buf, sizeof err_buf, "the batch-file name must be %d characters or less.\n", -- 2.34.1