aboutsummaryrefslogtreecommitdiffstats
path: root/net/minidlna
diff options
context:
space:
mode:
Diffstat (limited to 'net/minidlna')
-rw-r--r--net/minidlna/files/minidlna.sh.in2
-rw-r--r--net/minidlna/files/patch-warnings9
2 files changed, 1 insertions, 10 deletions
diff --git a/net/minidlna/files/minidlna.sh.in b/net/minidlna/files/minidlna.sh.in
index b19a94be5fec..b2803349c32c 100644
--- a/net/minidlna/files/minidlna.sh.in
+++ b/net/minidlna/files/minidlna.sh.in
@@ -28,7 +28,7 @@ stop_postcmd=$start_precmd
command_args="-P $pidfile -u $minidlna_uid"
extra_commands=rescan
-rescan_cmd="$command -R"
+rescan_cmd="$command -R -u $minidlna_uid"
required_dirs="/var/db/minidlna"
run_rc_command $1
diff --git a/net/minidlna/files/patch-warnings b/net/minidlna/files/patch-warnings
index 5138378835c5..a3038bbc7b7a 100644
--- a/net/minidlna/files/patch-warnings
+++ b/net/minidlna/files/patch-warnings
@@ -319,15 +319,6 @@
+ (int64_t)parentID);
last_genreArtist.objectID = objectID;
strcpy(last_genreArtist.name, artist?artist:_("Unknown Artist"));
-@@ -636,6 +646,6 @@
- ret = sql_exec(db, "INSERT into OBJECTS (OBJECT_ID, PARENT_ID, DETAIL_ID, CLASS, NAME)"
- " values "
-- "('%s', '%s', %lld, 'container.storageFolder', '%q')",
-- containers[i], containers[i+1], GetFolderMetadata(containers[i+2], NULL, NULL, NULL, 0), containers[i+2]);
-+ "('%s', '%s', %jd, 'container.storageFolder', '%q')",
-+ containers[i], containers[i+1], (intmax_t)GetFolderMetadata(containers[i+2], NULL, NULL, NULL, 0), containers[i+2]);
- if( ret != SQLITE_OK )
- goto sql_failed;
@@ -656,5 +666,5 @@
}