shithub: libdvdcss

Download patch

ref: 22cb2d442fecf4dd8122347309dbf27ad79e5559
parent: 98c66a5b51db1e7a3a056deaafcb9a76d09afbeb
author: Petri Hintukainen <phintuka@gmail.com>
date: Fri Mar 11 07:04:34 EST 2016

Improve error reporting when cache directory creation fails

--- a/src/libdvdcss.c
+++ b/src/libdvdcss.c
@@ -305,7 +305,7 @@
     i_ret = mkdir( dvdcss->psz_cachefile, 0755 );
     if( i_ret < 0 && errno != EEXIST )
     {
-        print_error( dvdcss, "failed creating cache directory" );
+        print_error( dvdcss, "failed creating cache directory '%s'", dvdcss->psz_cachefile );
         dvdcss->psz_cachefile[0] = '\0';
         return -1;
     }