Timestamp:
Nov 27, 2012, 4:43:17 PM (13 years ago)
Author:
Silvan Scherrer
Message:

Samba Server: updated trunk to 3.6.0

Location:
trunk/server
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/server

  • trunk/server/source3/dynconfig.c

    r690 r745  
    9999DEFINE_DYN_CONFIG_PARAM(CACHEDIR) /** Temporary cache files. Default LOCKDIR */
    100100DEFINE_DYN_CONFIG_PARAM(PIDDIR)
     101
    101102DEFINE_DYN_CONFIG_PARAM(NCALRPCDIR)
    102103DEFINE_DYN_CONFIG_PARAM(SMB_PASSWD_FILE)
    103104DEFINE_DYN_CONFIG_PARAM(PRIVATE_DIR)
     105
    104106
    105107#ifdef __OS2__
     108
     109
    106110
    107111/* Directory the binary was called from, same as getbindir() */
     
    295299}
    296300
     301
     302
     303
     304
     305
     306
     307
     308
     309
     310
     311
     312
     313
     314
     315
     316
     317
     318
     319
     320
     321
    297322/* Directory holding lock files */
    298323const char *get_dyn_LOCKDIR(void)
     
    309334}
    310335
     336
     337
     338
     339
     340
     341
     342
     343
     344
     345
     346
     347
     348
     349
     350
     351
     352
     353
     354
     355
     356
     357
     358
     359
     360
     361
     362
     363
    311364/* Directory holding the pid files */
    312365const char *get_dyn_PIDDIR(void)
     
    323376}
    324377
     378
     379
     380
     381
     382
     383
     384
     385
     386
     387
     388
     389
     390
     391
     392
     393
     394
     395
     396
     397
     398
     399
     400
     401
     402
     403
     404
     405
     406
     407
     408
     409
     410
     411
     412
     413
     414
     415
     416
     417
     418
     419
     420
     421
     422
     423
     424
     425
     426
     427
     428
     429
     430
     431
     432
     433
     434
     435
     436
     437
     438
     439
     440
    325441/* Location of smbpasswd */
    326442const char *get_dyn_SMB_PASSWD_FILE(void)
     
    351467}
    352468
    353 /* Directory holding the shared libs (same as libdir) */
    354 const char *get_dyn_SHLIBEXT(void)
    355 {
    356         static char buffer[1024] = "";
    357         if (!*buffer)
    358         {
    359                 char exedir[1024] = "";
    360                 if (!os2_GetExePath(exedir))
    361                 {
    362                         snprintf(buffer, 260, "%s", LIBDIR);
    363                 } else {
    364                         snprintf(buffer, 260, "%s/%s", exedir, "lib");
    365                 }
    366         }
    367 
    368         if (dyn_SHLIBEXT == NULL) {
    369                 return buffer;
    370         }
    371         return dyn_SHLIBEXT;
    372 }
    373 
    374 /* Directory holding the NCALRPCDIR (whatever that is) */
    375 const char *get_dyn_NCALRPCDIR(void)
    376 {
    377         static char buffer[1024] = "";
    378         if (!*buffer)
    379         {
    380                 char exedir[1024] = "";
    381                 if (!os2_GetExePath(exedir))
    382                 {
    383                         snprintf(buffer, 260, "%s", NCALRPCDIR);
    384                 } else {
    385                         snprintf(buffer, 260, "%s/%s", exedir, "lib");
    386                 }
    387         }
    388 
    389         if (dyn_NCALRPCDIR == NULL) {
    390                 return buffer;
    391         }
    392         return dyn_NCALRPCDIR;
    393 }
    394 
    395469#endif /* __OS2__ */
    396 
    397 /* In non-FHS mode, these should be configurable using 'lock dir =';
    398    but in FHS mode, they are their own directory.  Implement as wrapper
    399    functions so that everything can still be kept in dynconfig.c.
    400  */
    401 
    402 const char *get_dyn_STATEDIR(void)
    403 {
    404 #ifdef FHS_COMPATIBLE
    405         return STATEDIR;
    406 #else
    407         return lp_lockdir();
    408 #endif
    409 }
    410 
    411 const char *get_dyn_CACHEDIR(void)
    412 {
    413 #ifdef FHS_COMPATIBLE
    414         return CACHEDIR;
    415 #else
    416         return lp_lockdir();
    417 #endif
    418 }
Note: See TracChangeset for help on using the changeset viewer.