s3-winbind Move winbind privileged socket dir into state_path()
authorAndrew Bartlett <abartlet@samba.org>
Mon, 20 Jun 2011 00:13:09 +0000 (10:13 +1000)
committerAndrew Bartlett <abartlet@samba.org>
Mon, 20 Jun 2011 04:05:32 +0000 (14:05 +1000)
On default installs, this will be the same as the old lock_path(), but
lock_path() is now a directory that can safely be mapped to /var/locks
and removed by the OS on reboot.  It is important that the directory
permissions of this directory be preserved, as they may be customised.

Andrew Bartlett

source3/winbindd/winbindd.c

index 3d29e3fd51b6ab941c1a11826923b8b6a9ecfc54..1646821a1f18ab3a32329b1d2e105167569bdc34 100644 (file)
@@ -951,7 +951,7 @@ const char *get_winbind_pipe_dir(void)
 
 char *get_winbind_priv_pipe_dir(void)
 {
-       return lock_path(WINBINDD_PRIV_SOCKET_SUBDIR);
+       return state_path(WINBINDD_PRIV_SOCKET_SUBDIR);
 }
 
 static bool winbindd_setup_listeners(void)