Changeset 690 for trunk/server/source3/param/loadparm.c
- Timestamp:
- Mar 1, 2012, 10:28:56 AM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/param/loadparm.c
r599 r690 89 89 static bool in_client = False; /* Not in the client by default */ 90 90 static struct smbconf_csn conf_last_csn; 91 #ifdef __OS2__ 92 static bool newLockDir = False; 93 #endif 91 94 92 95 #define CONFIG_BACKEND_FILE 0 … … 5014 5017 string_set(&Globals.szPasswdProgram, ""); 5015 5018 string_set(&Globals.szLockDir, get_dyn_LOCKDIR()); 5019 #ifdef __OS2__ 5020 newLockDir = True; 5021 #endif 5016 5022 string_set(&Globals.szStateDir, get_dyn_STATEDIR()); 5017 5023 string_set(&Globals.szCacheDir, get_dyn_CACHEDIR()); … … 9301 9307 lp_do_parameter(GLOBAL_SECTION_SNUM, "wins server", "127.0.0.1"); 9302 9308 } 9309 #ifdef __OS2__ 9310 if (lp_is_in_client() && newLockDir) { 9311 char* s=NULL; 9312 if (asprintf(&s, "%s/%s", lp_lockdir(), "client") < 0) { 9313 smb_panic("init_globals: ENOMEM"); 9314 } 9315 lp_do_parameter(GLOBAL_SECTION_SNUM, "lock directory", s); 9316 SAFE_FREE(s); 9317 newLockDir = False; 9318 } 9319 #endif 9303 9320 9304 9321 init_iconv();
Note:
See TracChangeset
for help on using the changeset viewer.