Page 1 of 1

write-file and umask

Posted: Mon May 30, 2005 11:18 am
by 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.

Posted: Mon May 30, 2005 1:20 pm
by Lutz
Sounds reasonable, I can change that doing 'rw-rw-rw-' masked with umask

Lutz

Posted: Mon May 30, 2005 1:28 pm
by Lutz
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

Posted: Mon May 30, 2005 1:36 pm
by newdep
No hurry's ;-)

Thanks...Norman