Browse Source

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
commit
10bd041c99
1 changed files with 3 additions and 0 deletions
  1. +3
    -0
      recording-daemon/main.c

+ 3
- 0
recording-daemon/main.c View File

@ -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