refuse startup when spool-dir and output-dir are the same

reported in #808

Change-Id: I00e26d09d7557221dfdaf105559fb7eaa5ab3e50
changes/33/31433/2
Richard Fuchs 7 years ago
parent 9e79a121d8
commit 10bd041c99

@ -199,6 +199,9 @@ static void options(int *argc, char ***argv) {
output_storage = OUTPUT_STORAGE_BOTH;
else
die("Invalid 'output-storage' option");
if ((output_storage & OUTPUT_STORAGE_FILE) && !strcmp(output_dir, spool_dir))
die("The spool-dir cannot be the same as the output-dir");
}

Loading…
Cancel
Save