Changeset 831


Ignore:
Timestamp:
Nov 13, 2013, 5:29:22 PM (11 years ago)
Author:
Silvan Scherrer
Message:

Samba 3.6: remove some @todo

Location:
trunk/server/source3
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified trunk/server/source3/dynconfig.c

    r745 r831  
    106106
    107107#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
    110109
    111110/* Directory the binary was called from, same as getbindir() */
     
    376375}
    377376
    378 /* Directory holding the NMBDSOCKETDIR (whatever that is) */
     377/* Directory holding the NMBDSOCKETDIR */
    379378const char *get_dyn_NMBDSOCKETDIR(void)
    380379{
     
    382381        if (!*buffer)
    383382        {
    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"));
    391384        }
    392385
     
    397390}
    398391
    399 /* Directory holding the LOCALEDIR (whatever that is) */
     392/* Directory holding the LOCALEDIR */
    400393const char *get_dyn_LOCALEDIR(void)
    401394{
     
    403396        if (!*buffer)
    404397        {
    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"));
    412399        }
    413400
     
    418405}
    419406
    420 /* Directory holding the NCALRPCDIR (whatever that is) */
     407/* Directory holding the NCALRPCDIR */
    421408const char *get_dyn_NCALRPCDIR(void)
    422409{
     
    424411        if (!*buffer)
    425412        {
    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"));
    433414        }
    434415
  • TabularUnified trunk/server/source3/libsmb/clifile.c

    r751 r831  
    42134213                                    SMB_INFO_QUERY_ALL_EAS, 4,
    42144214                                    cli->max_xmit);
    4215 // @todo in earlier port the above cli->max_xmit was changed to CLI_BUFFER_SIZE
    4216 // @todo is that still needed? if no regressions are found please remove it
     4215// @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
    42174217        if (tevent_req_nomem(subreq, req)) {
    42184218                return tevent_req_post(req, ev);
  • TabularUnified trunk/server/source3/param/loadparm.c

    r751 r831  
    97379737           }
    97389738           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           }
    97409744           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           }
    97419750           lp_do_parameter(GLOBAL_SECTION_SNUM, "cache directory", s);
    97429751           SAFE_FREE(s);
Note: See TracChangeset for help on using the changeset viewer.