Ignore:
Timestamp:
Aug 5, 2009, 6:34:45 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

Update 3.0 to final 3.0.36 (source)

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/samba-3.0/source/param/loadparm.c

    r307 r312  
    151151        char *szPanicAction;
    152152        char *szAddUserScript;
    153         char *szRenameUserScript;
     153        char *szRenameUserScript;
    154154        char *szDelUserScript;
    155155        char *szAddGroupScript;
     
    188188        char *szChangeShareCommand;
    189189        char *szDeleteShareCommand;
    190         char **szEventLogs;
     190char **szEventLogs;
    191191        char *szGuestaccount;
    192192        char *szManglingMethod;
     
    472472        False,                  /* not autoloaded */
    473473        0,                      /* not a usershare */
    474         (time_t)0,              /* No last mod time */
     474        (time_t)0,            /* No last mod time */
    475475        NULL,                   /* szService */
    476476        NULL,                   /* szPath */
     
    513513        NULL,                   /* fstype */
    514514        NULL,                   /* vfs objects */
    515         NULL,                   /* szMSDfsProxy */
     515        NULL,              /* szMSDfsProxy */
    516516        NULL,                   /* szAioWriteBehind */
    517517        NULL,                   /* szDfree */
     
    533533        2,                      /* iOplockContentionLimit */
    534534        0,                      /* iCSCPolicy */
    535         1024,                   /* iBlock_size */
     535        1024,           /* iBlock_size */
    536536        0,                      /* iDfreeCacheTime */
    537537        False,                  /* bPreexecClose */
     
    588588        False,                  /* bForcePrintername */
    589589        True,                   /* bNTAclSupport */
    590         False,                  /* bForceUnknownAclUser */
     590        False,            /* bForceUnknownAclUser */
    591591        False,                  /* bUseSendfile */
    592592        False,                  /* bProfileAcls */
     
    821821        {MAP_TO_GUEST_ON_BAD_USER, "Bad User"},
    822822        {MAP_TO_GUEST_ON_BAD_PASSWORD, "Bad Password"},
    823         {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"},
     823        {MAP_TO_GUEST_ON_BAD_UID, "Bad Uid"},
    824824        {-1, NULL}
    825825};
     
    834834 *       Any parameter that does NOT have FLAG_ADVANCED will not disply at all
    835835 *       Set FLAG_SHARE and FLAG_PRINT to specifically display parameters in
    836  *        respective views.
     836 *      respective views.
    837837 *
    838838 * NOTE2: Handling of duplicated (synonym) paramters:
     
    11221122
    11231123        {"add user script", P_STRING, P_GLOBAL, &Globals.szAddUserScript, NULL, NULL, FLAG_ADVANCED},
    1124         {"rename user script", P_STRING, P_GLOBAL, &Globals.szRenameUserScript, NULL, NULL, FLAG_ADVANCED},
     1124        {"rename user script", P_STRING, P_GLOBAL, &Globals.szRenameUserScript, NULL, NULL, FLAG_ADVANCED},
    11251125        {"delete user script", P_STRING, P_GLOBAL, &Globals.szDelUserScript, NULL, NULL, FLAG_ADVANCED},
    11261126        {"add group script", P_STRING, P_GLOBAL, &Globals.szAddGroupScript, NULL, NULL, FLAG_ADVANCED},
     
    14181418        pstring s;
    14191419
    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         }
     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        }
    14251425
    14261426        if (!done_init) {
     
    14621462
    14631463#if defined (__OS2__)
    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]);
     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]);
    14731473#endif
    14741474
     
    14921492           characters - default to system codepage */
    14931493        string_set(&Globals.display_charset, OS2CodePageStr);
    1494 #endif 
     1494#endif
    14951495
    14961496#else
     
    22382238        BOOL global_section = False;
    22392239        char* param_key;
    2240         param_opt_struct *data;
     2240        param_opt_struct *data;
    22412241       
    22422242        if (snum >= iNumServices) return NULL;
     
    22682268                data = Globals.param_opt;
    22692269                while (data) {
    2270                         if (strcmp(data->key, param_key) == 0) {
    2271                                 string_free(&param_key);
     2270                        if (strcmp(data->key, param_key) == 0) {
     2271                                string_free(&param_key);
    22722272                                return data;
    22732273                        }
     
    24862486{
    24872487        int i;
    2488         param_opt_struct *data, *pdata;
     2488        param_opt_struct *data, *pdata;
    24892489        if (!pservice)
    24902490                return;
     
    26702670                DEBUG(10,("hash_a_service: creating tdb servicehash\n"));
    26712671                ServiceHash = tdb_open("servicehash", 1031, TDB_INTERNAL,
    2672                                         (O_RDWR|O_CREAT), 0600);
     2672                                        (O_RDWR|O_CREAT), 0600);
    26732673                if ( !ServiceHash ) {
    26742674                        DEBUG(0,("hash_a_service: open tdb servicehash failed!\n"));
     
    26832683                return False;
    26842684
    2685         tdb_store_int32(ServiceHash, canon_name, idx);
     2685        tdb_store_int32(ServiceHash, canon_name, idx);
    26862686
    26872687        return True;
Note: See TracChangeset for help on using the changeset viewer.