From ca20ddbe910b5fbd29e1bd0f1ef39d4d3720ebaa Mon Sep 17 00:00:00 2001 From: Garming Sam Date: Mon, 3 Feb 2014 15:57:21 +1300 Subject: param: rename lp function and variable from 'piddir' to 'pid_directory' Signed-off-by: Garming Sam Reviewed-by: Andrew Bartlett Reviewed-by: Jeremy Allison --- source3/nmbd/nmbd.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'source3/nmbd') diff --git a/source3/nmbd/nmbd.c b/source3/nmbd/nmbd.c index 2c1e8f02610..fd222c25c16 100644 --- a/source3/nmbd/nmbd.c +++ b/source3/nmbd/nmbd.c @@ -72,7 +72,7 @@ static void terminate(struct messaging_context *msg) gencache_stabilize(); serverid_deregister(messaging_server_id(msg)); - pidfile_unlink(lp_piddir(), "nmbd"); + pidfile_unlink(lp_pid_directory(), "nmbd"); exit(0); } @@ -976,14 +976,14 @@ static bool open_sockets(bool isdaemon, int port) exit(1); } - ok = directory_create_or_exist(lp_piddir(), geteuid(), 0755); + ok = directory_create_or_exist(lp_pid_directory(), geteuid(), 0755); if (!ok) { DEBUG(0, ("Failed to create directory %s for pid files - %s\n", - lp_piddir(), strerror(errno))); + lp_pid_directory(), strerror(errno))); exit(1); } - pidfile_create(lp_piddir(), "nmbd"); + pidfile_create(lp_pid_directory(), "nmbd"); status = reinit_after_fork(msg, nmbd_event_context(), false); -- cgit v1.2.1