Changeset 1046


Ignore:
Timestamp:
Jan 24, 2018, 11:04:42 AM (3 years ago)
Author:
Herwig Bauernfeind
Message:

SSCC: Fix log level not being saved in Samba 3.6

Location:
trunk/guitools/sscc
Files:
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/sscc/sscc.vrp

    r1024 r1046  
    77RunDirectory: U:\Develop\Samba\trunk\guitools\sscc
    88VRXWindow: __VREMainWindow,1,2867,4673,1012,7902
    9 VRXWindow: __VRESectionListWindow,1,1482,13924,10431,4686
    10 VRXWindow: __VREToolsWindow,0,4011,10841,6992,1669
     9VRXWindow: __VRESectionListWindow,1,1506,14406,10431,4686
     10VRXWindow: __VREToolsWindow,0,3999,10841,6486,1669
    1111VRXWindow: __VREWindListWindow,1,2072,13539,4710,3150
    1212UserFile: 1
    1313UserWindow: Main,1
    14 UserWindow: Installer,1
    15 UserWindow: RemoveConfig,1
  • trunk/guitools/sscc/sscc.vrx

    r1024 r1046  
    10841084        call lineout trg, smbline
    10851085        lct = lct + 1
     1086        if pos("log file",smbline) > 0 then do
     1087            call lineout trg, '09'x||'log level = 'VRGet("EF_LOG_LEVEL","value")
     1088            lct = lct + 1
     1089        end
    10861090    end
    10871091    say "Lines saved "lct
     
    11801184        section       = '[global]'
    11811185        call lineout smbconf, section
     1186        if workgroup = '' then workgroup = 'WORKGROUP' /* make sure we have no empty default, set to Windows default */
    11821187        call lineout smbconf, Indent||'workgroup = 'workgroup
    11831188        call lineout smbconf, Indent||'netbios name = 'value('HOSTNAME',,'OS2ENVIRONMENT')
     
    31463151
    31473152    if samba.!testparmexe <> "" & Installmode = 0 then do
    3148         if datatype("log_level") <> "NUM" then log_level = 2
     3153        if datatype("log_level") <> "NUM" then log_level = VRGet("EF_LOG_LEVEL","Value")
     3154call lineout "D:\testlog", "das erste log_level = '"log_level"'"
     3155call lineout "D:\testlog", "pos check "pos(log_level,'012345678910')
     3156        if pos(log_level,'012345678910') = 0 then log_level = 2
     3157call lineout "D:\testlog", "Das zweite log_level = '"log_level"'"
     3158        say         samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm'
    31493159        address cmd samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm'
    31503160        call _SmbConfCommitChanges
     
    31633173return
    31643174
    3165     say samba.!testparmexe' -s -d='log_level' 1>'TempDir'smb.conf 2>'TempDir'sscc.testparm'
    31663175/*:VRX         RB_PDC_Click
    31673176*/
Note: See TracChangeset for help on using the changeset viewer.