Re: file permission problem

"Pascal J. Bourguignon" <[email protected]>
Newsgroups gmane.lisp.clisp.general
Organization Informatimago
Message-ID <[email protected]>
[email protected] (Don Cohen) writes:

>>> [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.

Definitely.  This should be a bug to report.

-- 
__Pascal Bourguignon__                 http://www.informatimago.com/
“The factory of the future will have only two employees, a man and a
dog. The man will be there to feed the dog. The dog will be there to
keep the man from touching the equipment.” -- Carl Bass CEO Autodesk


------------------------------------------------------------------------------
_______________________________________________
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.