From 4378b09557205b314de5c189d7d697f22e5a4d29 Mon Sep 17 00:00:00 2001 From: Justin Maggard Date: Thu, 9 Jul 2009 17:54:26 +0000 Subject: [PATCH] * If the realpath() function does not work with the non-standard "resolved_path == NULL" feature, then just take the conf file at its word that the specified path is correct. --- minidlna.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/minidlna.c b/minidlna.c index 6fad8d9..2af6ff1 100644 --- a/minidlna.c +++ b/minidlna.c @@ -316,6 +316,8 @@ init(int argc, char * * argv) myval = index(ary_options[i].value, '/'); case '/': path = realpath(myval ? myval:ary_options[i].value, NULL); + if( !path ) + path = strdup(myval ? myval:ary_options[i].value); if( access(path, F_OK) != 0 ) { fprintf(stderr, "Media directory not accessible! [%s]\n",