This essentially reverts the commit
611ef42053eb99f4c29d4efa86eaea9f1ca06286
Author: Yasuma Takeda <yasuma@osstech.co.jp>
Date: Fri Dec 5 13:37:51 2008 -0800
Fix bug #5944 - nmbd does not boot if socket adress = "" is defined in smb.conf
Intead, the documentation is fixed so that the correct default is
recorded. Removing the special case handling here allows this to be
dealt with in the same way as all other parameters.
Andrew Bartlett
address.</para>
</description>
-<value type="default"></value>
+<value type="default">0.0.0.0</value>
<value type="example">192.168.2.20</value>
</samba:parameter>
FN_GLOBAL_BOOL(readraw, bReadRaw)
FN_GLOBAL_BOOL(writeraw, bWriteRaw)
FN_GLOBAL_STRING(cachedir, szCacheDir)
-FN_GLOBAL_STRING(socket_address, szSocketAddress)
FN_GLOBAL_STRING(statedir, szStateDir)
/* local prototypes */
FN_GLOBAL_CONST_STRING(private_dir, szPrivateDir)
FN_GLOBAL_CONST_STRING(realm, szRealm_upper)
FN_GLOBAL_CONST_STRING(smb_passwd_file, szSMBPasswdFile)
+FN_GLOBAL_CONST_STRING(socket_address, szSocketAddress)
FN_GLOBAL_CONST_STRING(socket_options, socket_options)
FN_GLOBAL_CONST_STRING(template_homedir, szTemplateHomedir)
FN_GLOBAL_CONST_STRING(template_shell, szTemplateShell)
char *szLdapGroupSuffix; \
char *szStateDir; \
char *szCacheDir; \
- char *szSocketAddress; \
char *szUsershareTemplateShare; \
char *szIdmapUID; \
char *szIdmapGID; \
return MIN(Globals.iminreceivefile, BUFFER_SIZE);
}
-/*******************************************************************
- If socket address is an empty character string, it is necessary to
- define it as "0.0.0.0".
-********************************************************************/
-
-const char *lp_socket_address(void)
-{
- char *sock_addr = Globals.szSocketAddress;
-
- if (sock_addr[0] == '\0'){
- string_set(&Globals.szSocketAddress, "0.0.0.0");
- }
- return Globals.szSocketAddress;
-}
-
/*******************************************************************
Safe wide links checks.
This helper function always verify the validity of wide links,