delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/1998/07/09/08:42:02

From: ian AT cygnus DOT com (Ian Lance Taylor)
Subject: Re: [andyp AT parallax DOT co DOT uk: RE: permissions problem]
9 Jul 1998 08:42:02 -0700 :
Message-ID: <199807091513.LAA13130.cygnus.cygwin32.developers@subrogation.cygnus.com>
References: <19980709013320 DOT H1641 AT cygnus DOT com>
To: noer AT cygnus DOT com
Cc: cygwin32-developers AT cygnus DOT com

   Date: Thu, 9 Jul 1998 01:33:20 +0000
   From: Geoffrey Noer <noer AT cygnus DOT com>

   Opinions, anyone?

   Date: Fri, 03 Jul 1998 08:57:39 +0100
   From: Andy Piper <andyp AT parallax DOT co DOT uk>

   Can I petition you to change the default perms to 664?

STD_WBITS is used for some things for which it doesn't necessarily
seem appropriate, like pipes.  Posix doesn't define st_mode for pipes
at all.  Unix systems vary on what they return.  I tested a few
systems, and the most common return value seems to be 010000; i.e.,
set the permission bits to zero.

As far as files go, in the case where nobody has set the Unix file
permissions, I think we should strive to make the Unix permissions
emulate the Windows permissions.  I don't know the NT security model.
On 95, I assume that any user can overwrite any file, so I think we
should return a mode of 0666 (or 0777).

Ian

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019