1
0
mirror of https://github.com/libretro/Lakka-LibreELEC.git synced 2024-11-22 18:36:21 +00:00
Lakka-LibreELEC/packages/addons/addon-depends/system-tools-depends/file/patches/file-move-magic.mgc-to-addon-data.patch
2016-04-25 10:37:14 -07:00

26 lines
718 B
Diff

From 1191268f518d298c8617a4a74644ee1bb627f614 Mon Sep 17 00:00:00 2001
From: Stefan Saraev <stefan@saraev.ca>
Date: Mon, 25 Aug 2014 15:35:14 +0300
Subject: [PATCH] move magic.mgc to addon/data
---
src/magic.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/src/magic.c b/src/magic.c
index e4bd12b..59c1456 100644
--- a/src/magic.c
+++ b/src/magic.c
@@ -100,7 +100,7 @@ get_default_magic(void)
if ((home = getenv("HOME")) == NULL)
return MAGIC;
- if (asprintf(&hmagicpath, "%s/.magic.mgc", home) < 0)
+ if (asprintf(&hmagicpath, "%s/.kodi/addons/virtual.system-tools/data/magic.mgc", home) < 0)
return MAGIC;
if (stat(hmagicpath, &st) == -1) {
free(hmagicpath);
--
1.7.2.5