Operating System - OpenVMS
cancel
Showing results for 
Search instead for 
Did you mean: 

Error opening files with ACL length greater than 512 bytes

 
Highlighted
madhav_poddar
Occasional Advisor

Error opening files with ACL length greater than 512 bytes

When I am trying to sys$open file with ACLLEN > 512, I am receiving the error :

%RMS-E-ACC, ACP file access failed

 

Following is the code snippet :

// Re-opening the file with longer ACL buffer 

SYS$CLOSE (&fab, 0, 0);

xabpro.xab$l_aclbuf = (char *) malloc (xabpro.xab$w_acllen);
xabpro.xab$w_aclsiz = xabpro.xab$w_acllen; // acllen was initialized during the previous sys$open

status = SYS$OPEN (&fab, 0, 0);

 

Also, please note that BYTLM was set to 256000 and MAXBUF is set to 8192. With xabpro.xab$w_aclsiz set to 512 or less, sys$open is successful.

 

Can you suggest me a way to open a file with ACLLEN greater than 512 bytes

1 REPLY 1
Steven Schweda
Honored Contributor

Re: Error opening files with ACL length greater than 512 bytes

> When I am trying to sys$open file with ACLLEN > 512, I am receiving the
> error :
> %RMS-E-ACC, ACP file access failed

   I haven't looked at this stuff for about ten years, so I know
nothing, but there was a complaint about Info-ZIP Zip (3.0) having
problems with an ACL longer than 512 bytes.  The ACL-reading code was
changed to solve that problem.  If you're desperate for some example
code, then you might look at what's in [.vms]vms_pk.c in a (relatively)
recent Zip beta kit. For example:

      ftp://ftp.info-zip.org/pub/infozip/beta/zip31d.zip

   As I recall, that problem did not involve the file open itself, but
rather reading the ACL.  As always, the Zip code may not be ideal, but
it might be educational.