Changeset 831 for trunk/server/source3/dynconfig.c
- Timestamp:
- Nov 13, 2013, 5:29:22 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/server/source3/dynconfig.c
r745 r831 106 106 107 107 #ifdef __OS2__ 108 // @todo change this file so it also works for rpm 109 // @todo see what NMBDSOCKETDIR & LOCALEDIR are used for 108 // @todo_port change this file so it also works for rpm 110 109 111 110 /* Directory the binary was called from, same as getbindir() */ … … 376 375 } 377 376 378 /* Directory holding the NMBDSOCKETDIR (whatever that is)*/377 /* Directory holding the NMBDSOCKETDIR */ 379 378 const char *get_dyn_NMBDSOCKETDIR(void) 380 379 { … … 382 381 if (!*buffer) 383 382 { 384 char exedir[1024] = ""; 385 if (!os2_GetExePath(exedir)) 386 { 387 snprintf(buffer, 260, "%s", NMBDSOCKETDIR); 388 } else { 389 snprintf(buffer, 260, "%s/%s", exedir, "lib"); 390 } 383 snprintf(buffer, 260, "%s/samba/nmbd", getenv("ETC")); 391 384 } 392 385 … … 397 390 } 398 391 399 /* Directory holding the LOCALEDIR (whatever that is)*/392 /* Directory holding the LOCALEDIR */ 400 393 const char *get_dyn_LOCALEDIR(void) 401 394 { … … 403 396 if (!*buffer) 404 397 { 405 char exedir[1024] = ""; 406 if (!os2_GetExePath(exedir)) 407 { 408 snprintf(buffer, 260, "%s", LOCALEDIR); 409 } else { 410 snprintf(buffer, 260, "%s/%s", exedir, "lib"); 411 } 398 snprintf(buffer, 260, "%s/samba/locale", getenv("ETC")); 412 399 } 413 400 … … 418 405 } 419 406 420 /* Directory holding the NCALRPCDIR (whatever that is)*/407 /* Directory holding the NCALRPCDIR */ 421 408 const char *get_dyn_NCALRPCDIR(void) 422 409 { … … 424 411 if (!*buffer) 425 412 { 426 char exedir[1024] = ""; 427 if (!os2_GetExePath(exedir)) 428 { 429 snprintf(buffer, 260, "%s", NCALRPCDIR); 430 } else { 431 snprintf(buffer, 260, "%s/%s", exedir, "lib"); 432 } 413 snprintf(buffer, 260, "%s/samba/ncalrpc", getenv("ETC")); 433 414 } 434 415
Note:
See TracChangeset
for help on using the changeset viewer.