Changeset 745 for trunk/server/source3/dynconfig.c
- Timestamp:
- Nov 27, 2012, 4:43:17 PM (13 years ago)
- Location:
- trunk/server
- Files:
-
- 2 edited
-
. (modified) (1 prop)
-
source3/dynconfig.c (modified) (5 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/server
- Property svn:mergeinfo changed
/vendor/current merged: 581,587,591,594,597,600,615,618,740
- Property svn:mergeinfo changed
-
trunk/server/source3/dynconfig.c
r690 r745 99 99 DEFINE_DYN_CONFIG_PARAM(CACHEDIR) /** Temporary cache files. Default LOCKDIR */ 100 100 DEFINE_DYN_CONFIG_PARAM(PIDDIR) 101 101 102 DEFINE_DYN_CONFIG_PARAM(NCALRPCDIR) 102 103 DEFINE_DYN_CONFIG_PARAM(SMB_PASSWD_FILE) 103 104 DEFINE_DYN_CONFIG_PARAM(PRIVATE_DIR) 105 104 106 105 107 #ifdef __OS2__ 108 109 106 110 107 111 /* Directory the binary was called from, same as getbindir() */ … … 295 299 } 296 300 301 302 303 304 305 306 307 308 309 310 311 312 313 314 315 316 317 318 319 320 321 297 322 /* Directory holding lock files */ 298 323 const char *get_dyn_LOCKDIR(void) … … 309 334 } 310 335 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 311 364 /* Directory holding the pid files */ 312 365 const char *get_dyn_PIDDIR(void) … … 323 376 } 324 377 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 325 441 /* Location of smbpasswd */ 326 442 const char *get_dyn_SMB_PASSWD_FILE(void) … … 351 467 } 352 468 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 395 469 #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 wrapper399 functions so that everything can still be kept in dynconfig.c.400 */401 402 const char *get_dyn_STATEDIR(void)403 {404 #ifdef FHS_COMPATIBLE405 return STATEDIR;406 #else407 return lp_lockdir();408 #endif409 }410 411 const char *get_dyn_CACHEDIR(void)412 {413 #ifdef FHS_COMPATIBLE414 return CACHEDIR;415 #else416 return lp_lockdir();417 #endif418 }
Note:
See TracChangeset
for help on using the changeset viewer.
