|
We have some code that is outputting data to the IFS and the security is not behaving as expected. The programmer is using the C runtime functions and the code is similar to this: // Open files... pathnam = '/' + cojobd + '/'; // Overpriced hard to implement payroll system import file... filnam = pscomp + '_PU_' + %subst(cojobd:9:2) + '_' + creatdt + '.csv'; fullnam = %trim(pathnam) + %trim(filnam) ; File_o = fopen(%trim(fullnam ):'w, codepage=850'); rc = fclose(file_o); I have created directories that have *PUBLIC *EXCLUDE and use an AUTL list for the authorized users. However, the file gets created with *PUBLIC *RWX and no AUTL. I'm assuming that the fopen runtime has a default authority setup but can't seem to find that documented anywhere. Does it have a default *PUBLIC authority and can I change it so that the authority is pulled from the directory that the file is being created in? Michael Crump Manager, Computing Services Saint-Gobain Containers 1509 S. Macedonia Ave. Muncie, IN 47302 (765)741-7696 (765)741-7012 f (800)428-8642 "The complex problems of today cannot be solved by the minds that created them." Albert Einstein "The probability that we may fail in the struggle ought not to deter us from the support of a cause we believe to be just" Abraham Lincoln
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.