This is the mail archive of the
cygwin@sourceware.cygnus.com
mailing list for the Cygwin project.
Re: File permissions problems
- To: Corinna Vinschen <corinna at vinschen dot de>
- Subject: Re: File permissions problems
- From: "Charles S. Wilson" <cwilson at ece dot gatech dot edu>
- Date: Fri, 25 Feb 2000 04:32:49 -0500
- CC: cygwin at sourceware dot cygnus dot com
- References: <38B2B1EF.57193440@ece.gatech.edu> <38B481A5.3DA595D8@vinschen.de>
Corinna Vinschen wrote:
>
> Nevertheless it seems to be not a problem of ntsec but a result of
> the open calls in ipc code. I have only version 1.03 and the open
> calls which create the /tmp/Multi* files do create the files without
> explicit permission, eg:
>
> LFdSem = open(CYGWIN32_IPCNT_FILESEM, O_CREAT|O_TRUNC|O_WRONLY);
>
> instead of
>
> LFdSem = open(CYGWIN32_IPCNT_FILESEM, O_CREAT|O_TRUNC|O_WRONLY,
> 0666) ;
>
Thanks for the pointer. I've fixed both cygipc and gdbm based on this
advice. As an added benefit, 'cvs export' now works after relinking cvs
with the fixed gdbm.
> > [...]
> > The Multi* files are created by ipc-daemon, and I guess the sock-* files
> > are created by the io_sock test (via the AF_UNIX cygwin subsystem.) In
>
> The permissions of the sock-files are probably a cygwin error.
> I will examine the related cygwin code when I have more time.
>
Thanks...
--Chuck Wilson
--
Want to unsubscribe from this list?
Send a message to cygwin-unsubscribe@sourceware.cygnus.com