write-file and umask

Started by newdep, May 30, 2005, 04:18:05 AM

Previous topic - Next topic

newdep

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.
-- (define? (Cornflakes))

Lutz

#1
Sounds reasonable, I can change that doing 'rw-rw-rw-' masked with umask



Lutz

Lutz

#2
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

newdep

#3
No hurry's ;-)



Thanks...Norman
-- (define? (Cornflakes))