Ignore:
Timestamp:
Sep 22, 2009, 4:17:24 PM (16 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: Fix problem in smbusers

File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/guitools-1.0/shared/sambainit.vrs

    r302 r333  
    123123    if \VRFileExists(samba.!smbclientexe) then call _ErrorBinaryNotFound "Could not find smbclient.exe!"
    124124    IF options.!debug == 1 THEN say '  smbclient.exe  = "'samba.!smbclientexe'"'
     125
     126    /* nmblookup.exe */
     127    samba.!nmblookupexe = samba.!bin'\nmblookup.exe'
     128    if \VRFileExists(samba.!nmblookupexe) then call _ErrorBinaryNotFound "Could not find nmblookup.exe!"
     129    IF options.!debug == 1 THEN say '  nmblookup.exe  = "'samba.!nmblookupexe'"'
    125130
    126131    /* pwd_mkdb */
     
    265270    end
    266271    drop old_path
     272
     273    /* Add binary and tools path to the DPATH variable */
     274    old_dpath = value('DPATH',, 'OS2ENVIRONMENT')
     275    if pos(translate(samba.!bin';'),translate(old_dpath)) = 0 then do
     276        if samba.!bin = samba.!tools then new_dpath = samba.!bin';'
     277        else new_dpath = samba.!bin';'samba.!tools';'
     278        ok = value('DPATH', new_dpath || old_dpath, 'OS2ENVIRONMENT')
     279        drop new_dpath
     280    end
     281    drop old_dpath
    267282   
    268283    /* Add binary and tools path to the BEGINLIBPATH variable */
     
    275290    end
    276291    drop old_beginlibpath
     292
    277293
    278294    /* Set LIBPATHSTRICT (this is an option - disabled by default) */
Note: See TracChangeset for help on using the changeset viewer.