Changeset 759 for trunk/guitools/shared


Ignore:
Timestamp:
Feb 17, 2013, 4:34:32 PM (13 years ago)
Author:
Herwig Bauernfeind
Message:

GUI-Tools: EVFSGUI 2.5 final stuff (including helpfiles EN and DE)

Location:
trunk/guitools/shared
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/guitools/shared/masterpasswd.vrs

    r719 r759  
    7272    newmasterpasswd = TempDir'master.passwd'
    7373    ok = SysFileDelete(newmasterpasswd)
    74     call lineout newmasterpasswd, '# Created by smbusers Version 'word(VRGet("Main", "Hinttext"),2)
     74    call lineout newmasterpasswd, '# Created by Samba GUI Tools 'date('E')' 'time(''))
    7575    call lineout newmasterpasswd, '# syntax:'
    7676    call lineout newmasterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell'
     
    121121    IF options.!debug == 1 then say time()" _PasswordDBRewrite() done ("pwd_mkdbrc")"
    122122return
     123
     124_MasterPasswdFindUser: procedure expose username.
     125    IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'arg(1)'") started'
     126    FindUser = arg(1)
     127    Idx = 0
     128    do I = 1 to username.0
     129        if translate(username.I) = translate(FindUser) then do
     130            Idx = I
     131            leave
     132        end
     133    end
     134    IF options.!debug == 1 THEN say '_MasterpasswdFindUser("'FindUser'") done, returning 'Idx
     135return idx
  • trunk/guitools/shared/smbtree.vrs

    r707 r759  
    1919    address cmd 'detach 'samba.!smbtreeexe' 'BroadCast' -S 'UserCred' 'debuglevel' >'samba.!serverlist
    2020
    21     if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption","User context: Guest")
     21    /* strip username from caption */
     22    UserContext = VRGet("CN_SMBTREE","Caption")
     23    UserContext = DelWord(UserContext,words(UserContext))
     24   
     25    if UserCred = '-N' then ok = VRSet("CN_SMBTREE","Caption",UserContext': Guest')
    2226    else do
    2327        parse var UserCred '--user='username'%'.
    24         ok = VRSet("CN_SMBTREE","Caption","User context: "username)
     28        ok = VRSet("CN_SMBTREE","Caption",UserContext": "username)
    2529    end
    2630
     
    165169
    166170    say       '  detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2'
     171    call lineout "y:\debugger", '  detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2'
    167172    address cmd 'detach 'samba.!smbclientexe' -L "'machine'" 'UserCred' 'debuglevel' 2>'smbmachine' 1>&2'
    168173
Note: See TracChangeset for help on using the changeset viewer.