Changeset 312 for branches/samba-3.0/source/param/loadparm.c
- Timestamp:
- Aug 5, 2009, 6:34:45 PM (16 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/samba-3.0/source/param/loadparm.c
r307 r312 151 151 char *szPanicAction; 152 152 char *szAddUserScript; 153 153 char *szRenameUserScript; 154 154 char *szDelUserScript; 155 155 char *szAddGroupScript; … … 188 188 char *szChangeShareCommand; 189 189 char *szDeleteShareCommand; 190 190 char **szEventLogs; 191 191 char *szGuestaccount; 192 192 char *szManglingMethod; … … 472 472 False, /* not autoloaded */ 473 473 0, /* not a usershare */ 474 (time_t)0, 474 (time_t)0, /* No last mod time */ 475 475 NULL, /* szService */ 476 476 NULL, /* szPath */ … … 513 513 NULL, /* fstype */ 514 514 NULL, /* vfs objects */ 515 NULL, 515 NULL, /* szMSDfsProxy */ 516 516 NULL, /* szAioWriteBehind */ 517 517 NULL, /* szDfree */ … … 533 533 2, /* iOplockContentionLimit */ 534 534 0, /* iCSCPolicy */ 535 1024, 535 1024, /* iBlock_size */ 536 536 0, /* iDfreeCacheTime */ 537 537 False, /* bPreexecClose */ … … 588 588 False, /* bForcePrintername */ 589 589 True, /* bNTAclSupport */ 590 False, 590 False, /* bForceUnknownAclUser */ 591 591 False, /* bUseSendfile */ 592 592 False, /* bProfileAcls */ … … 821 821 {MAP_TO_GUEST_ON_BAD_USER, "Bad User"}, 822 822 {MAP_TO_GUEST_ON_BAD_PASSWORD, "Bad Password"}, 823 823 {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"}, 824 824 {-1, NULL} 825 825 }; … … 834 834 * Any parameter that does NOT have FLAG_ADVANCED will not disply at all 835 835 * Set FLAG_SHARE and FLAG_PRINT to specifically display parameters in 836 * 836 * respective views. 837 837 * 838 838 * NOTE2: Handling of duplicated (synonym) paramters: … … 1122 1122 1123 1123 {"add user script", P_STRING, P_GLOBAL, &Globals.szAddUserScript, NULL, NULL, FLAG_ADVANCED}, 1124 1124 {"rename user script", P_STRING, P_GLOBAL, &Globals.szRenameUserScript, NULL, NULL, FLAG_ADVANCED}, 1125 1125 {"delete user script", P_STRING, P_GLOBAL, &Globals.szDelUserScript, NULL, NULL, FLAG_ADVANCED}, 1126 1126 {"add group script", P_STRING, P_GLOBAL, &Globals.szAddGroupScript, NULL, NULL, FLAG_ADVANCED}, … … 1418 1418 pstring s; 1419 1419 1420 1421 1422 1423 1424 1420 /* If requested to initialize only once and we've already done it... */ 1421 if (first_time_only && done_init) { 1422 /* ... then we have nothing more to do */ 1423 return; 1424 } 1425 1425 1426 1426 if (!done_init) { … … 1462 1462 1463 1463 #if defined (__OS2__) 1464 1465 1466 1467 1468 1469 1470 1471 1472 1464 /* search the system codepage and set OS2CodePageStr */ 1465 unsigned long _System DosQueryCp (unsigned long ulLength, unsigned long *pCodePageList, unsigned long *pDataLength); 1466 pstring OS2CodePageStr; 1467 unsigned long OS2CodePage[3]; 1468 unsigned long OS2CodePageLen; 1469 if ( DosQueryCp( sizeof(OS2CodePage), OS2CodePage, &OS2CodePageLen ) ) 1470 slprintf(OS2CodePageStr, sizeof(OS2CodePageStr) -1, "SYSTEM"); 1471 else 1472 slprintf(OS2CodePageStr, sizeof(OS2CodePageStr) -1, "IBM-%u", OS2CodePage[0]); 1473 1473 #endif 1474 1474 … … 1492 1492 characters - default to system codepage */ 1493 1493 string_set(&Globals.display_charset, OS2CodePageStr); 1494 #endif 1494 #endif 1495 1495 1496 1496 #else … … 2238 2238 BOOL global_section = False; 2239 2239 char* param_key; 2240 2240 param_opt_struct *data; 2241 2241 2242 2242 if (snum >= iNumServices) return NULL; … … 2268 2268 data = Globals.param_opt; 2269 2269 while (data) { 2270 2271 2270 if (strcmp(data->key, param_key) == 0) { 2271 string_free(¶m_key); 2272 2272 return data; 2273 2273 } … … 2486 2486 { 2487 2487 int i; 2488 2488 param_opt_struct *data, *pdata; 2489 2489 if (!pservice) 2490 2490 return; … … 2670 2670 DEBUG(10,("hash_a_service: creating tdb servicehash\n")); 2671 2671 ServiceHash = tdb_open("servicehash", 1031, TDB_INTERNAL, 2672 2672 (O_RDWR|O_CREAT), 0600); 2673 2673 if ( !ServiceHash ) { 2674 2674 DEBUG(0,("hash_a_service: open tdb servicehash failed!\n")); … … 2683 2683 return False; 2684 2684 2685 2685 tdb_store_int32(ServiceHash, canon_name, idx); 2686 2686 2687 2687 return True;
Note:
See TracChangeset
for help on using the changeset viewer.