Changeset 1025
- Timestamp:
- Jun 5, 2017, 5:30:08 PM (8 years ago)
- Location:
- trunk/guitools/evfsgui
- Files:
-
- 3 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/guitools/evfsgui/evfsgui.vrp
r1016 r1025 5 5 VXOFile: VRSPLIT 6 6 ClassFile: VRSPLITB.DLL 7 MacroPath: VRM: G:\netlabs\svn\samba\trunk\guitools\evfsgui7 MacroPath: VRM:U:\Develop\Samba\trunk\guitools\evfsgui 8 8 EXEPath: 9 RunParameters: -NDFS10 RunDirectory: G:\netlabs\svn\samba\trunk\guitools\evfsgui11 VRXWindow: __VREMainWindow,1, 1831,2457,1012,784112 VRXWindow: __VREFileListWindow,1, 711,14020,2665,335813 VRXWindow: __VRESectionListWindow,1, 1421,15659,12238,691414 VRXWindow: __VREToolsWindow,1, 2951,12479,6986,166115 VRXWindow: __VREWindListWindow,1, 566,10262,4963,31509 RunParameters: 10 RunDirectory: U:\Develop\Samba\trunk\guitools\evfsgui 11 VRXWindow: __VREMainWindow,1,2891,5637,1012,8000 12 VRXWindow: __VREFileListWindow,1,3300,14695,2665,3358 13 VRXWindow: __VRESectionListWindow,1,2867,14020,10889,5035 14 VRXWindow: __VREToolsWindow,1,4011,4963,6992,1669 15 VRXWindow: __VREWindListWindow,1,458,14695,4866,3150 16 16 UserFile: 1 17 17 UserWindow: Main,1 18 UserWindow: SW_ADVANCED,1 19 UserWindow: SW_PROGRESS,1 20 UserWindow: SW_MOUNTPOINT,1 21 UserWindow: SW_INFO,1 18 UserWindow: SW_SMBTREE,1 19 UserWindow: SW_ACLS,1 -
trunk/guitools/evfsgui/evfsgui.vrx
r1016 r1025 342 342 fmonth = word(infoline,wn-3) 343 343 fwday = word(infoline,wn-4) 344 pos_attr = pos(fwday,infoline)-16 344 /* FIXME: This is flaky! */ 345 pos_attr = max(pos(fwday,infoline)-16,4) 345 346 fsize = word(infoline,wn-5) 346 347 fattr = substr(infoline,pos_attr,6) … … 522 523 ok = VRSet("Menu_Selected_Retry", "Visible", 0) /* CN_CONDET */ 523 524 ok = VRSet("Menu_Selected_Connect", "Visible", 0) /* CN_SMBTREE */ 525 ok = VRSet("Menu_Selected_ACLS", "Visible", 0) /* CN_SMBTREE */ 524 526 ok = VRSet("Menu_Selected_Sep1", "Visible", 0) /* CN_SMBTREE */ 525 527 ok = VRSet("Menu_Selected_Info", "Visible", 0) /* CN_SMBTREE */ … … 532 534 ok = VRSet("Menu_Selected_DetailsView","Visible",1) 533 535 */ 536 say SMBObj.udatatype 534 537 select 535 538 when SMBObj.udatatype = "DISK" then do … … 552 555 /* CALL VRMessage 'Main', NLVGetMessage( 62 ), NLVGetMessage( 5 ), 'E' */ 553 556 end 554 otherwise nop /* FILE DIRECTORY */ 557 when SMBObj.udatatype = "DIRECTORY" then do 558 ok = VRSet("Menu_Selected_ACLS", "Visible", 1) 559 end 560 when SMBObj.udatatype = "FILE" then do 561 ok = VRSet("Menu_Selected_ACLS", "Visible", 1) 562 end 563 otherwise nop /* No other value known */ 555 564 end 556 565 return … … 2455 2464 if options.!debug == 1 then say time()' CN_SMBTREE_ContextMenu started' 2456 2465 2466 call _ContextMenuSelectedSet 2467 2457 2468 call _dropdeprecated 2458 2469 call _GetSmbObjectProperties VRInfo('Record') 2459 2470 2460 call _ContextMenuSelectedSet 2471 BrowsePath = _browsebuildpath(SMBObj.rh) 2472 2473 call _BrowseResetObject(SmbObj.rh) 2474 2475 parse var browsepath '\\'machine'\'sharename '\' browsepath 2476 2461 2477 ok = VRMethod( "Menu_Selected", "Popup", , , "", "" ) 2462 2478 … … 3662 3678 Menu_Help_Extended_Click: 3663 3679 ok = VRMethod( "Main", "InvokeHelp" ) 3680 return 3681 3682 /*:VRX Menu_Selected_ACLS_Click 3683 */ 3684 Menu_Selected_ACLS_Click: 3685 if options.!debug == 1 then say ' List ACLS for "'SMBObj.udatatype'"' 3686 window = VRLoadSecondary( "SW_ACLS", "W" ) 3664 3687 return 3665 3688 … … 4148 4171 return 4149 4172 4173 /*:VRX PB_ACLS_OK_Click 4174 */ 4175 PB_ACLS_OK_Click: 4176 call SW_ACLS_Close 4177 return 4178 4150 4179 /*:VRX PB_ADVANCED_APPLY_Click 4151 4180 */ … … 5029 5058 return 5030 5059 5060 /*:VRX SW_ACLS_Close 5061 */ 5062 SW_ACLS_Close: 5063 call SW_ACLS_Fini 5064 return 5065 5066 /*:VRX SW_ACLS_Create 5067 */ 5068 SW_ACLS_Create: 5069 call SW_ACLS_Init 5070 5071 ok = VRSet("SW_ACLS","Caption",'ACLS \\'machine'\'sharename' "'browsepath'"') 5072 5073 ACL.typeFH = VRMethod( "CN_ACLS", "AddField", "String", "Type" ) 5074 ACL.valueFH = VRMethod( "CN_ACLS", "AddField", "String", "Value" ) 5075 5076 /* Make sure credentials are usable */ 5077 if UserCred = 'USERCRED' | UserCred = '' | UserCred = '--user=%' then UserCred = '-N' 5078 5079 /* We have to remove the double % for smbclient.exe - not entirely clear why */ 5080 OldUserCred = "" 5081 if pos('%%',UserCred) > 0 & pos("4OS2", value("COMSPEC",,"OS2ENVIRONMENT")) = 0 then do 5082 OldUserCred = UserCred 5083 parse var UserCred '--user='username'%%'password 5084 UserCred = '--user='username'%'password 5085 say " Strip double %%!!!" 5086 end 5087 5088 /* FIXME: We do not show a logon failure - just nothing */ 5089 say ' 'samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred 5090 address cmd samba.!smbcaclsexe' \\'machine'\'sharename' "'browsepath'" 'UserCred' 'debuglevel' 2>NUL 1>'samba.!msg 5091 5092 do until lines(samba.!msg) = 0 5093 infoline = linein(samba.!msg) 5094 parse var infoline aclstype':'aclsvalue 5095 DummyRH = VRMethod('CN_ACLS', 'AddRecord') 5096 ok = VRMethod("CN_ACLS", "SetFieldData", DummyRH, ACL.typeFH, aclstype, ACL.valueFH, aclsvalue) 5097 end 5098 ok = stream(samba.!msg,'c','close') 5099 ok = SysFileDelete(samba.!msg) 5100 return 5101 5102 /*:VRX SW_ACLS_Fini 5103 */ 5104 SW_ACLS_Fini: 5105 window = VRInfo( "Window" ) 5106 call VRDestroy window 5107 drop window 5108 return 5109 /*:VRX SW_ACLS_Init 5110 */ 5111 SW_ACLS_Init: 5112 window = VRInfo( "Object" ) 5113 if( \VRIsChildOf( window, "Notebook" ) ) then do 5114 call VRMethod window, "CenterWindow" 5115 call VRSet window, "Visible", 1 5116 call VRMethod window, "Activate" 5117 end 5118 drop window 5119 return 5120 5031 5121 /*:VRX SW_ADVANCED_Close 5032 5122 */
Note:
See TracChangeset
for help on using the changeset viewer.