newLISP Fan Club

Forum => newLISP in the real world => Topic started by: newdep on May 30, 2005, 04:18:05 AM

Title: write-file and umask
Post by: newdep on May 30, 2005, 04:18:05 AM
Hi Lutz,



'write-file always creates an executable file output.

Would be more convienient if Newlisp would check the umask

of the current user or always put the file into 600.





> (write-file "count" "some text")

9

> (! "ls -al count")

-rwxr-xr-x  1 newdep users 9 2005-05-30 13:26 count

0

>





Norman.
Title:
Post by: Lutz on May 30, 2005, 06:20:12 AM
Sounds reasonable, I can change that doing 'rw-rw-rw-' masked with umask



Lutz
Title:
Post by: Lutz on May 30, 2005, 06:28:03 AM
Note that this will not be in 8.6.0, due June 10th. I will add an optional permissions parameter to 'open' and 'write-file', but will do this after the release of 8.6.0



Lutz
Title:
Post by: newdep on May 30, 2005, 06:36:40 AM
No hurry's ;-)



Thanks...Norman