export file permissions

Brian K. White brian at aljex.com
Mon Jun 21 06:51:43 PDT 2010


On 6/17/2010 7:24 PM, John Esak wrote:
> Mark is right.  We have been over this many times. I should have remembered.
> Changing umask does not good if you change it go into ta prc and then issue
> the filePro commands. No change whatever.  What we learned long ago was that
> if you were to take extraordinary measures, then you could have umask play a
> prt. For example:
>
>     then: system "umask 0;>/tmp/newfile"
>
> Will create a file following the umask. Otherwise, you get the regular "rw"
> creation of the file. Like he said, EXPORT makes a -rw-rw-rw (666) file.
>
> Because of these differences, it is on wishlists somewhere that control over
> permissions happen in future versions.
>
> John
>    

This system() command is exactly what he wants to avoid.

I have this kind of command a zillion places in our code and the jsfile 
trick is a great improvement in both portability and efficiency be 
avoiding the unecessary use of system().

-- 
bkw



More information about the Filepro-list mailing list