Changeset 1039
- Timestamp:
- Dec 14, 2017, 11:01:02 AM (8 years ago)
- Location:
- trunk/guitools/evfsgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrp
r1029 r1039 12 12 VRXWindow: __VREFileListWindow,1,3300,14695,2665,3358 13 13 VRXWindow: __VRESectionListWindow,1,2867,14020,10889,5035 14 VRXWindow: __VREToolsWindow,1,2867,337,698 9,166714 VRXWindow: __VREToolsWindow,1,2867,337,6986,1661 15 15 VRXWindow: __VREWindListWindow,1,458,14695,4866,3150 16 16 UserFile: 1 17 UserWindow: Main,118 UserWindow: SW_LOGIN,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r1029 r1039 3664 3664 if options.!debug == 1 then say time()' '||'Create "'vfs.!mountpoint'" = 'CreateMP 3665 3665 3666 /* encrypt password if necessary - fix for AN Ticket #1594 */ 3667 if options.!password <> '' & options.!spassword = '' then do 3668 options.!spassword = c2x(options.!password) 3669 options.!password = '' 3670 end 3666 3671 3667 3672 /* Build the resource parameter string */ … … 3671 3676 IF options.!share \= '' THEN src = src';SHARE='options.!share 3672 3677 IF options.!user \= '' THEN src = src';USER='options.!user 3673 IF options.!password \= '' THEN src = src';PASSWORD='options.!password 3678 /* fix for AN Ticket #1594 */ 3679 /* IF options.!password \= '' THEN src = src';PASSWORD='options.!password */ 3674 3680 IF options.!spassword \= '' THEN src = src';SPASSWORD='options.!spassword 3675 3681 IF options.!master \= '' THEN src = src';MASTER='options.!master … … 3694 3700 if options.!cachelistings = "" then options.!cachelistings = "32" 3695 3701 if options.!easupport= "" | options.!easupport= " " then options.!easupport = strip(options.!easupport) 3696 if options.!password <> "" & options.!spassword = "" then do3697 options.!spassword = c2x(options.!password)3698 options.!password = ""3699 end3700 3702 3701 3703 hashstr = mpoint' 'translate(options.!workgroup)' 'translate(options.!server)' 'translate(options.!share)' 'options.!user' 'options.!spassword' 'options.!easupport' 'rwFlag … … 4667 4669 RETURN 4668 4670 4671 /*:VRX RB_ACLS_NUMERIC_Click 4672 */ 4673 RB_ACLS_NUMERIC_Click: 4674 aclsnumeric = '--numeric' 4675 ok = VRSet("DT_REV_CONT","Caption","") 4676 ok = VRMethod("CN_ACLS","RemoveRecord","ALL") 4677 ok = VRMethod("CN_ACLS","SetFieldAttr", ACL.userFH, "Visible", 0 ) 4678 call _ACLSBrowse 4679 return 4680 4681 /*:VRX RB_ACLS_TEXT_Click 4682 */ 4683 RB_ACLS_TEXT_Click: 4684 aclsnumeric = '' 4685 ok = VRSet("DT_REV_CONT","Caption","") 4686 ok = VRMethod("CN_ACLS","RemoveRecord","ALL") 4687 ok = VRMethod("CN_ACLS","SetFieldAttr", ACL.userFH, "Visible", 1 ) 4688 call _ACLSBrowse 4689 return 4690 4669 4691 /*:VRX Refresh 4670 4692 */ … … 4848 4870 SW_ACLS_Create: 4849 4871 call SW_ACLS_Init 4850 4851 ok = VRSet("SW_ACLS","Caption",'ACLS \\'machine'\'sharename' "'browsepath'"') 4852 4853 ACL.typeFH = VRMethod( "CN_ACLS", "AddField", "String", "Type" ) 4854 ACL.valueFH = VRMethod( "CN_ACLS", "AddField", "String", "Value" ) 4855 4856 /* Make sure credentials are usable */ 4857 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 4858 4859 /* We have to remove the double % for smbclient.exe - not entirely clear why */ 4860 OldUserCred = "" 4861 if pos('%%',UserCred) > 0 & pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 0 then do 4862 OldUserCred = UserCred 4863 parse var UserCred '--user='username'%%'password 4864 UserCred = '--user='username'%'password 4865 say " Strip double %%!!!" 4866 end 4867 4868 say ' 'samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred 4869 address cmd samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred' 'debuglevel' 2>'samba.!error' 1>'samba.!msg 4870 4871 ok = file2stem(samba.!error,"aclserror.","DEL") 4872 4873 if aclserror.0 = 0 then do 4874 call _StatusBarWrapper "NT_STATUS_OK" 4875 4876 ok = file2stem(samba.!msg,"aclsmsg.","DEL") 4877 do I = 1 to aclsmsg.0 4878 parse var aclsmsg.I aclstype':'aclsvalue 4879 DummyRH = VRMethod('CN_ACLS', 'AddRecord') 4880 ok = VRMethod("CN_ACLS", "SetFieldData", DummyRH, ACL.typeFH, aclstype, ACL.valueFH, aclsvalue) 4881 end 4882 end 4883 else do 4884 call _StatusBarWrapper aclserror.1 4885 call SW_ACLS_close 4886 end 4872 ACL.typeFH = VRMethod( "CN_ACLS", "AddField", "String", "Type" ) 4873 ACL.groupFH = VRMethod( "CN_ACLS", "AddField", "String", "Group" ) 4874 ACL.userFH = VRMethod( "CN_ACLS", "AddField", "String", "User" ) 4875 ACL.ADFH = VRMethod( "CN_ACLS", "AddField", "String", "A/D" ) 4876 ACL.flagsFH = VRMethod( "CN_ACLS", "AddField", "String", "Flags" ) 4877 ACL.accessFH = VRMethod( "CN_ACLS", "AddField", "String", "Access" ) 4878 ok = VRMethod( "CN_ACLS", "RemoveRecord", "ALL") 4879 aclsnumeric = '' 4880 call _ACLSBrowse 4887 4881 return 4888 4882
Note:
See TracChangeset
for help on using the changeset viewer.