*** apache_base:[src.main]http_config.c;1 Mon Aug 23 11:38:21 1999 --- apache_cur:[src.main]http_config.c;3 Mon Aug 23 11:38:04 1999 *************** *** 570,580 **** --- 570,597 ---- * components (Unix and DOS), and remove them. */ + #ifndef VMS if (strrchr(m->name, '/')) m->name = 1 + strrchr(m->name, '/'); if (strrchr(m->name, '\\')) m->name = 1 + strrchr(m->name, '\\'); + #else /* VMS */ + { + /* We cannot fix the string in-place, because it's const */ + char * cp; + + if ((cp = strchr(m->name, ']')) || (cp = strchr(m->name, '>'))) { + /* Copy only the filename.ext;version portion past the delimiter. + * Spend, not leak or waste, memory to get pretty (expected) format. + */ + m->name = strdup(cp + 1); + if (cp = strrchr(m->name, ';')) { + *cp = '\0'; /* Strip off ;version */ + } + } + } + #endif #ifdef _OSD_POSIX /* __FILE__="*POSIX(/home/martin/apache/src/modules/standard/mod_info.c)" */ /* We cannot fix the string in-place, because it's const */ if (m->name[strlen(m->name)-1]==')') {