1
0
mirror of https://github.com/samba-team/samba.git synced 2025-01-12 09:18:10 +03:00

Remove module_path_get_name() - it's not used anywhere anymore and was a bad idea anyway.

(This used to be commit b45a67e7a9)
This commit is contained in:
Jelmer Vernooij 2003-05-30 16:36:38 +00:00
parent dc02f81650
commit ff0a111d37

View File

@ -130,29 +130,6 @@ void init_modules(void)
}
/*************************************************************************
* This functions /path/to/foobar.so -> foobar
************************************************************************/
void module_path_get_name(const char *path, pstring name)
{
char *s;
/* First, make the path relative */
s = strrchr(path, '/');
if(s) pstrcpy(name, s+1);
else pstrcpy(name, path);
if (dyn_SHLIBEXT && *dyn_SHLIBEXT && strlen(dyn_SHLIBEXT) < strlen(name)) {
int n = strlen(name) - strlen(dyn_SHLIBEXT);
/* Remove extension if necessary */
if (name[n-1] == '.' && !strcmp(name+n, dyn_SHLIBEXT)) {
name[n-1] = '\0';
}
}
}
/***************************************************************************
* This Function registers a idle event
*