unix.c
changeset 1010 17470a8e5eb7
parent 983 1be852dcdd4c
child 1050 e76fa5c5d835
equal deleted inserted replaced
1009:a7ccb8e39cbc 1010:17470a8e5eb7
   261 		s = strrchr(path, '/');
   261 		s = strrchr(path, '/');
   262 		if (s != NULL) *s = 0;
   262 		if (s != NULL) *s = 0;
   263 		break;
   263 		break;
   264 
   264 
   265 	case FIOS_TYPE_DIR:
   265 	case FIOS_TYPE_DIR:
   266 		s = strchr((char*)item->name, '/');
   266 		s = strchr(item->name, '/');
   267 		if (s) *s = 0;
   267 		if (s) *s = 0;
   268 		while (*path) path++;
   268 		while (*path) path++;
   269 		*path++ = '/';
   269 		*path++ = '/';
   270 		strcpy(path, item->name);
   270 		strcpy(path, item->name);
   271 		break;
   271 		break;