The AML [access] function results are incorrect for Samba server files; therefore, affecting the Arctools and Forms command.
Last Published: August 25, 2014No Product Found
Bug ID Number
NIM031673
Submitted
January 30, 2008
Last Modified
June 5, 2024
Applies to
No Product Found
Version found
8.2
Status
Will Not Be Addressed
The development team has considered the issue or request and concluded it will not be addressed. The issue's Additional Information section may contain further explanation.
Additional Information
No Public Explanation
Workaround
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!'