From caef2d2884fb202bd6184f9a676ecff94c7ab600 Mon Sep 17 00:00:00 2001 From: Martin Pool Date: Mon, 19 Nov 2001 03:35:27 +0000 Subject: LIBDIR and LOCKDIR are dynamically configured too. (This used to be commit 868999ad3c82ad72f11d5b3208b0e42b1ed95096) --- source3/lib/util.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) (limited to 'source3/lib') diff --git a/source3/lib/util.c b/source3/lib/util.c index 81e30aa8e3..ea39d8a05b 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1782,13 +1782,18 @@ char *lock_path(char *name) return fname; } -/***************************************************************** -a useful function for returning a path in the Samba lib directory - *****************************************************************/ + +/** + * @brief Returns an absolute path to a file in the Samba lib directory. + * + * @param name File to find, relative to LIBDIR. + * + * @retval Pointer to a static #pstring containing the full path. + **/ char *lib_path(char *name) { static pstring fname; - snprintf(fname, sizeof(fname), "%s/%s", LIBDIR, name); + snprintf(fname, sizeof(fname), "%s/%s", dyn_LIBDIR, name); return fname; } -- cgit