# HG changeset patch # User al # Date 1094849602 0 # Node ID 90ffe76b5b2565aba70858f676e6037a0da37756 # Parent a8925b9fc147231ac61e2de5eb24b15d45adc151 Don't prepend basepath to a full unix path. ( 10l to Joey. ) diff -r a8925b9fc147 -r 90ffe76b5b25 playtreeparser.c --- a/playtreeparser.c Fri Sep 10 17:54:17 2004 +0000 +++ b/playtreeparser.c Fri Sep 10 20:53:22 2004 +0000 @@ -624,8 +624,9 @@ for(i = 0 ; pt->files[i] != NULL ; i++) { fl = strlen(pt->files[i]); - // if we find url:// or X:\ at the beginning, don't mangle it. - if(fl <= 0 || strstr(pt->files[i],"://") || strstr(pt->files[i],":\\") == pt->files[i] + 1) + // if we find a full unix path, url:// or X:\ at the beginning, + // don't mangle it. + if(fl <= 0 || strstr(pt->files[i],"://") || (strstr(pt->files[i],":\\") == pt->files[i] + 1) || (pt->files[i][0] == '/') ) continue; // if the path begins with \ then prepend drive letter to it. if (pt->files[i][0] == '\\') {