Browse Source

TT#108003 log error on unlink failure

Change-Id: I10478c659f8eeb134b2f3c238fd35c644ca878ef
pull/1194/head
Richard Fuchs 5 years ago
parent
commit
1219b2fdbd
1 changed files with 2 additions and 1 deletions
  1. +2
    -1
      recording-daemon/db.c

+ 2
- 1
recording-daemon/db.c View File

@ -420,7 +420,8 @@ file:;
if (stream.s)
free(stream.s);
if (!(output_storage & OUTPUT_STORAGE_FILE))
remove(op->filename);
if (unlink(op->filename))
ilog(LOG_ERR, "Failed to delete file '%s': %s", op->filename, strerror(errno));
}
void db_delete_stream(output_t *op) {


Loading…
Cancel
Save