Commit e0439446 authored by Eric Wong's avatar Eric Wong

conf.c: correctly parse "~username/file" in config files

git-svn-id: https://svn.musicpd.org/mpd/trunk@3922 09075e82-0dd4-0310-85a5-a0d7c8717e4f
parent 89fc5da5
......@@ -416,7 +416,7 @@ ConfigParam * parseConfigFilePath(char * name, int force) {
for(;*ch!='\0' && *ch!='/';ch++);
if(*ch=='/') foundSlash = 1;
* ch = '\0';
pos+= ch-path+1;
pos+= ch-path-1;
if((pwd = getpwnam(path+1)) == NULL) {
ERROR("user \"%s\" not found at line %i\n",
path+1, param->line);
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment