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:
committed by
Gerald (Jerry) Carter
parent
be6d5298a2
commit
2c7b62a861
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user