libaacs | branch: master | npzacs <[email protected]> | Fri Jan 23 12:49:56 2015
+0200| [042cf8e6f21ac560edc1c4de33ea805077f415e6] | committer: npzacs
Fix creating directory path in Windows
stat("C:") seems to fail.
> http://git.videolan.org/gitweb.cgi/libaacs.git/?a=commit;h=042cf8e6f21ac560edc1c4de33ea805077f415e6
---
src/file/keydbcfg.c | 3 +++
1 file changed, 3 insertions(+)
diff --git a/src/file/keydbcfg.c b/src/file/keydbcfg.c
index aca00f7..ecf260d 100644
--- a/src/file/keydbcfg.c
+++ b/src/file/keydbcfg.c
@@ -57,6 +57,9 @@ static int _mkpath(const char *path)
char *dir = str_printf("%s", path);
char *end = dir;
+#ifdef _WIN32
+ end += 2; /* skip drive */
+#endif
while (*end == DIR_SEP_CHAR)
end++;
_______________________________________________
libaacs-devel mailing list
[email protected]
https://mailman.videolan.org/listinfo/libaacs-devel