changeset 13305:90ffe76b5b25

Don't prepend basepath to a full unix path. ( 10l to Joey. )
author al
date Fri, 10 Sep 2004 20:53:22 +0000
parents a8925b9fc147
children 405b0afcc651
files playtreeparser.c
diffstat 1 files changed, 3 insertions(+), 2 deletions(-) [+]
line wrap: on
line diff
--- 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] == '\\') {