pos = strrchr(path, '/');
while ( stat(path, &st) != 0) {
-#ifdef DEBUG
- fprintf(stderr, "searching in path %s\n", path);
-#endif
path[pos-path]=0;
if ((pos = strrchr(path, '/'))) {
path[pos-path]=0;
path[pos-path] = '/';
path[pos-path+1] = 0;
-#ifdef DEBUG
- fprintf(stderr, "%s path %s\n", subdir, path);
-#endif
+
return path;
}
return (-1);
break;
}
-#ifdef DEBUG
- printf ("volume information: %s, %s", buf, value);
-#endif
return 0;
}