The AML [access] function results are incorrect for Samba server files; therefore, affecting the Arctools and Forms command.
上次发布: August 25, 2014No Product Found
漏洞 ID 编号
NIM031673
已提交
January 30, 2008
上次修改时间
June 5, 2024
适用范围
No Product Found
找到的版本
8.2
状态
Will Not Be Addressed
开发团队已考虑过该问题或请求,并决定不会解决该问题。 问题的“其他信息”部分可能包含进一步说明。
附加信息
No Public Explanation
解决办法
FROM CQ00126787:----------------------------User has workarounds:1) comment out check for accessor2) replace check using [ACCESS] with the following check:&sv fname = [scratchname -prefix xxx -file]&sv fu [open %fname% ostat -write]&if %ostat% = 0 &then &sv closestat = [close %fu%] &sv delstat = [delete %fname% -file] /* do processing&end--------------------------------------How to implement it in FORMS.AMLcopy the atool\arcplot\forms.aml to locale\c\atool\arcplot\forms.aml, and edit the locale version to not use the [access] function.&if not [access [dir [pathname [value specifier]]] -write] &then &do &type 'Insufficient Access!' &return&end /* if--- /*** /*** [access] fails on Samba drives (says it can't write) /*** /*&if not [access [dir [pathname [value specifier]]] -write] &then &do /* &type 'Insufficient Access!' /* &return /*&end /* if /*** Workaround (cprice, 01/28/2008) &s ff [scratchname -file -ext .txt] &s ch [open %ff% st -w] &if %st% eq 0 &then &do &s st [close %ch%] &s st [delete %ff%] &end &else &return &error 'Insufficient Access!'