Skip to content

Commit 10bd041

Browse files
committed
refuse startup when spool-dir and output-dir are the same
reported in sipwise#808 Change-Id: I00e26d09d7557221dfdaf105559fb7eaa5ab3e50
1 parent 9e79a12 commit 10bd041

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

recording-daemon/main.c

+3
Original file line numberDiff line numberDiff line change
@@ -199,6 +199,9 @@ static void options(int *argc, char ***argv) {
199199
output_storage = OUTPUT_STORAGE_BOTH;
200200
else
201201
die("Invalid 'output-storage' option");
202+
203+
if ((output_storage & OUTPUT_STORAGE_FILE) && !strcmp(output_dir, spool_dir))
204+
die("The spool-dir cannot be the same as the output-dir");
202205
}
203206

204207

0 commit comments

Comments
 (0)