Ignore:
Timestamp:
May 25, 2010, 6:17:14 PM (15 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: SSCC 1.0.0, SMBUsers 0.9.8 several fixes, rest

File:
1 edited

Legend:

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

    r277 r451  
    1515        end
    1616    end
     17    if samba.!htpasswdexe = "" then do /* wellknown locations */
     18        WellKnown = SysBootdrive()"\ecs\system\apache2\bin;"SysBootdrive()"\apache2\bin"
     19        Programs = value("PROGRAMS",,'OS2ENVIRONMENT')
     20        if Programs <> "" then WellKnown = Wellknown';'Programs'\apache2\bin'
     21        Tools = value("TOOLS",,'OS2ENVIRONMENT')
     22        if Tools <> "" then WellKnown = Wellknown';'Tools'\apache2\bin'
     23        call charout , "  Are binaries in wellknown locations? "
     24        ok = VRFindFile("htpasswdexe.exe",WellKnown)
     25        if ok <> "" then say "Yes."; else say "No."
     26        if ok <> "" then samba.!htpasswdexe = ok
     27        drop Wellknown Tools Programs
     28    end
     29
    1730    if samba.!htpasswdexe = "" then do /* in current directory? */
    1831        call charout , "  Is htpasswd.exe in current directory? "
    1932        ok = SysFileTree('.\htpasswd.exe', exist.,'FO')
    20         say exist.0' (1 = Yes, 0 = No)'
     33        if exist.0 = 1 then say "Yes."; else say "No."
    2134        if exist.0 = 1 then samba.!htpasswdexe = exist.1
    2235    end
     
    2437        call charout , "  Is htpasswd.exe in parent directory? "
    2538        ok = SysFileTree('..\htpasswd.exe', exist.,'FO')
    26         say exist.0' (1 = Yes, 0 = No)'
     39        if exist.0 = 1 then say "Yes."; else say "No."
    2740        if exist.0 = 1 then samba.!htpasswdexe = exist.1
    2841    end
     
    3043        call charout , "  Is htpasswd.exe in ..\BIN directory? "
    3144        ok = SysFileTree('..\bin\htpasswd.exe', exist.,'FO')
    32         say exist.0' (1 = Yes, 0 = No)'
     45        if exist.0 = 1 then say "Yes."; else say "No."
    3346        if exist.0 = 1 then samba.!htpasswdexe = exist.1
    3447    end
     
    3649        call charout , "  Is htpasswd.exe in "SysBootDrive()"\apache2\bin path? "
    3750        ok = SysFileTree(SysBootDrive()'\apache2\bin\htpasswd.exe', exist.,'FO')
    38         say exist.0' (1 = Yes, 0 = No)'
     51        if exist.0 = 1 then say "Yes."; else say "No."
    3952        if exist.0 = 1 then samba.!htpasswdexe = exist.1
    4053    end
     
    4255        call charout , "  Is htpasswd.exe in ..\..\apache2\bin path? "
    4356        ok = SysFileTree('..\..\apache2\bin\htpasswd.exe', exist.,'FO')
    44         say exist.0' (1 = Yes, 0 = No)'
     57        if exist.0 = 1 then say "Yes."; else say "No."
    4558        if exist.0 = 1 then samba.!htpasswdexe = exist.1
    4659    end
Note: See TracChangeset for help on using the changeset viewer.