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

r14281: Pull apart LIBDIR and MODULESDIR

Move architecture-independent data to DATADIR (was LIBDIR)
This commit is contained in:
Jelmer Vernooij
2006-03-13 02:05:39 +00:00
committed by Gerald (Jerry) Carter
parent be6d5298a2
commit 2c7b62a861
12 changed files with 272 additions and 138 deletions

View File

@@ -637,15 +637,15 @@ static char *pid_path(TALLOC_CTX* mem_ctx, const char *name)
/**
* @brief Returns an absolute path to a file in the Samba lib directory.
*
* @param name File to find, relative to LIBDIR.
* @param name File to find, relative to DATADIR.
*
* @retval Pointer to a talloc'ed string containing the full path.
**/
_PUBLIC_ char *lib_path(TALLOC_CTX* mem_ctx, const char *name)
_PUBLIC_ char *data_path(TALLOC_CTX* mem_ctx, const char *name)
{
char *fname;
fname = talloc_asprintf(mem_ctx, "%s/%s", dyn_LIBDIR, name);
fname = talloc_asprintf(mem_ctx, "%s/%s", dyn_DATADIR, name);
return fname;
}