diff options
Diffstat (limited to 'source3/lib/util.c')
-rw-r--r-- | source3/lib/util.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/source3/lib/util.c b/source3/lib/util.c index ce39bb3b1d..62e08333dd 100644 --- a/source3/lib/util.c +++ b/source3/lib/util.c @@ -1687,6 +1687,16 @@ char *lock_path(char *name) return fname; } +/***************************************************************** +a useful function for returning a path in the Samba lib directory + *****************************************************************/ +char *lib_path(char *name) +{ + static pstring fname; + snprintf(fname, sizeof(fname), "%s/%s", LIBDIR, name); + return fname; +} + /******************************************************************* Given a filename - get its directory name NB: Returned in static storage. Caveats: |