This is the mail archive of the cygwin@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: File permissions problems


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]