Changeset 759 for trunk/guitools/shared/masterpasswd.vrs
- Timestamp:
- Feb 17, 2013, 4:34:32 PM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/shared/masterpasswd.vrs
r719 r759 72 72 newmasterpasswd = TempDir'master.passwd' 73 73 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('')) 75 75 call lineout newmasterpasswd, '# syntax:' 76 76 call lineout newmasterpasswd, '# username:passwd:UID:GID:login-class:chg pw x sec:deact x sec:GECOS:home:shell' … … 121 121 IF options.!debug == 1 then say time()" _PasswordDBRewrite() done ("pwd_mkdbrc")" 122 122 return 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 135 return idx
Note:
See TracChangeset
for help on using the changeset viewer.