Changeset 570


Ignore:
Timestamp:
May 19, 2011, 8:37:51 AM (14 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI 2.1: Fix Ticket #170

Location:
branches/guitools-2.0
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • TabularUnified branches/guitools-2.0/evfsgui/changes

    r525 r570  
    1111- Passive connections/double connection detection does not seem
    1212  to work properly
     13 
     14Version 2.1.1 2011-03-08
     15- Fixed: Finally servers always end up in the proper domain/workgroup
    1316
    1417Version 2.1.0 2011-01-18
  • TabularUnified branches/guitools-2.0/evfsgui/evfsgui.VRP

    r566 r570  
    1010VRXWindow: __VREFileListWindow,1,807,11033,1590,3358
    1111VRXWindow: __VRESectionListWindow,1,2674,10648,8696,4794
    12 VRXWindow: __VREToolsWindow,1,2517,7082,6486,1665
     12VRXWindow: __VREToolsWindow,1,2517,7082,6480,1669
    1313VRXWindow: __VREWindListWindow,1,542,8721,2650,3150
    1414UserFile: 1
  • TabularUnified branches/guitools-2.0/shared/smbtree.vrs

    r566 r570  
    274274            line = linein(smbmachine.I)
    275275
    276             if left(line,5) = "Error" then ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'UserData', "SERVER|"||strip(line))
     276            if translate(left(strip(line),5)) = "ERROR" then ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'UserData', "SERVER|"||strip(line))
    277277
    278278            do while(left(line,1) = '09'x) /* Share loop */
     
    333333                end
    334334            end
    335             else do /* There are multiple workgroups, we need additional */
    336                     /* measures tofind out which is our workgroup */
    337                 say     '  'samba.!smbclientexe' -L "'Machine'" -N 'debuglevel' 2>'samba.!msg' 1>NUL'
    338                 address cmd samba.!smbclientexe' -L "'Machine'" -N 'debuglevel' 2>'samba.!msg' 1>NUL'
    339                 infoline = linein(samba.!msg)
    340                 if word(infoline,1) = "creating" then do /* upcase tables are missing */
    341                     say "Missing upcase tables detected!"
     335            else do
     336                if workgroup <> "" then do
     337                    /* There are multiple workgroups, we need additional */
     338                    /* measures to find out which is our workgroup       */
     339                    say     '  'samba.!smbclientexe' -L "'Machine'" -N 'debuglevel' 2>'samba.!msg' 1>NUL'
     340                    address cmd samba.!smbclientexe' -L "'Machine'" -N 'debuglevel' 2>'samba.!msg' 1>NUL'
    342341                    infoline = linein(samba.!msg)
    343                     infoline = linein(samba.!msg)
    344                 end
    345                 IF options.!debug == 1 THEN say '  Response = "'Infoline'"'
    346                 ok = stream(samba.!msg,'c','close')
    347                 ok = SysFileDelete(samba.!msg)
    348 
    349                 parse var infoline "Domain=["WorkGroup"] "Rest
    350                 wgh = _GetMachinehandle(workgroup)
    351                 if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" then do
    352                     ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh)
     342                    if word(infoline,1) = "creating" then do /* upcase tables are missing */
     343                        say "Missing upcase tables detected!"
     344                        infoline = linein(samba.!msg)
     345                        infoline = linein(samba.!msg)
     346                    end
     347                    IF options.!debug == 1 THEN say '  Response = "'Infoline'"'
     348                    ok = stream(samba.!msg,'c','close')
     349                    ok = SysFileDelete(samba.!msg)
     350
     351                    parse var infoline "Domain=["WorkGroup"] "Rest
     352                    wgh = _GetMachinehandle(workgroup)
     353                    if wgh <> "" & VRMethod('CN_smbtree', 'GetRecordAttr', smbtree.!machine, 'Parent') = "" then do
     354                        ok = VRMethod('CN_smbtree', 'SetRecordAttr', smbtree.!machine, 'Parent', wgh)
     355                    end
     356                end
     357                else do
     358                    /* The machine does not allow browsing and does not report a workgroup */
     359                    say '  "'Machine'" does not allow browsing. Unable to determine workgroup.'
    353360                end
    354361            end
Note: See TracChangeset for help on using the changeset viewer.