From f84da177dd7e293fdc30e095af232cca5d40d82e Mon Sep 17 00:00:00 2001 From: Ian Jackson Date: Fri, 3 Jul 2009 20:20:14 +0100 Subject: [PATCH] Do not allow --same --upload without --test-servers --- pctb/convert.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pctb/convert.c b/pctb/convert.c index 6f40f94..950300b 100644 --- a/pctb/convert.c +++ b/pctb/convert.c @@ -82,6 +82,9 @@ static void open_screenshot_file(const char *mode) { if (!screenshot_file) fatal("could not open screenshots file `%s': %s", o_screenshot_fn, strerror(errno)); + + if ((o_flags & ff_upload) && !(o_flags & ff_testservers)) + badusage("must not reuse screenshots for upload to live PCTB database"); } static void run_analysis(void) { -- 2.30.2