Re: file permission problem

[email protected] (Don Cohen)
Newsgroups gmane.lisp.clisp.general
Message-ID <[email protected]>
>> [1]> (with-open-file (s "/home/cmcadm/data2009/mb2" :direction :output)) 
>> NIL 
>> =>
>>   -rw-r-----. 1 marilyn cmcadm      0 Aug 11 10:13 mb2               

When I run this under strace I see
open("/home/cmcadm/data2009/mb2", O_RDWR|O_CREAT|O_TRUNC|O_LARGEFILE, 0644) = 4 

It seems that 0644 is the culprit.
If it were 0664, for instance, I'd get my rw.

When I strace touch I see
open("/home/cmcadm/data2009/mb3", O_WRONLY|O_CREAT|O_NOCTTY|O_NONBLOCK|O_LARGEFILE, 0666) = 3 

So I now suggest that clisp should be using 0666.

Any other opinions?

------------------------------------------------------------------------------
_______________________________________________
clisp-list mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/clisp-list
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.