Changeset 831
- Timestamp:
- Nov 13, 2013, 5:29:22 PM (11 years ago)
- Location:
- trunk/server/source3
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified 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 -
TabularUnified trunk/server/source3/libsmb/clifile.c ¶
r751 r831 4213 4213 SMB_INFO_QUERY_ALL_EAS, 4, 4214 4214 cli->max_xmit); 4215 // @todo in earlier port the above cli->max_xmit was changed to CLI_BUFFER_SIZE4216 // @todo is that still needed? if no regressions are found please remove it4215 // @todo_port in earlier port the above cli->max_xmit was changed to CLI_BUFFER_SIZE 4216 // @todo_port is that still needed? if no regressions are found please remove it 4217 4217 if (tevent_req_nomem(subreq, req)) { 4218 4218 return tevent_req_post(req, ev); -
TabularUnified trunk/server/source3/param/loadparm.c ¶
r751 r831 9737 9737 } 9738 9738 lp_do_parameter(GLOBAL_SECTION_SNUM, "lock directory", s); 9739 // @todo what do these directories do 9739 9740 s=NULL; 9741 if (asprintf(&s, "%s/%s", lp_statedir(), "client") < 0) { 9742 smb_panic("init_globals: ENOMEM"); 9743 } 9740 9744 lp_do_parameter(GLOBAL_SECTION_SNUM, "state directory", s); 9745 9746 s=NULL; 9747 if (asprintf(&s, "%s/%s", lp_cachedir(), "client") < 0) { 9748 smb_panic("init_globals: ENOMEM"); 9749 } 9741 9750 lp_do_parameter(GLOBAL_SECTION_SNUM, "cache directory", s); 9742 9751 SAFE_FREE(s);
Note:
See TracChangeset
for help on using the changeset viewer.