chiark / gitweb /
Do not allow --same --upload without --test-servers
authorIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 3 Jul 2009 19:20:14 +0000 (20:20 +0100)
committerIan Jackson <ian@liberator.relativity.greenend.org.uk>
Fri, 3 Jul 2009 19:20:14 +0000 (20:20 +0100)
pctb/convert.c

index 6f40f94cd0c5cc7d1772a1d4cee9d78047b5539c..950300b588d1cc7e1e7fe9afc5409f0c4084c8d2 100644 (file)
@@ -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) {