Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-01-22 23:57:45 +0300
committerChristopher Faylor <me@cgf.cx>2004-01-22 23:57:45 +0300
commitf97a316f3fba5042e9b769ff394b3ec65665e25f (patch)
tree482bdfe689ab6b452f807574360945d71c9d3c43
parentc3d911e1254d5ff29ce54cd1f661d7084414a58b (diff)
missed checkin
-rw-r--r--winsup/cygwin/fhandler.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 6d3070992..0aad893a3 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -396,7 +396,7 @@ fhandler_base::open (int flags, mode_t mode)
file_attributes |= FILE_FLAG_OVERLAPPED;
#ifdef HIDDEN_DOT_FILES
- if (flags & O_CREAT && dev ().isfs ())
+ if (flags & O_CREAT && get_device () == FH_FS)
{
char *c = strrchr (get_win32_name (), '\\');
if ((c && c[1] == '.') || *get_win32_name () == '.')
@@ -420,7 +420,7 @@ fhandler_base::open (int flags, mode_t mode)
/* If the file should actually be created and ntsec is on,
set files attributes. */
- if (flags & O_CREAT && dev ().isfs () && allow_ntsec && has_acls ())
+ if (flags & O_CREAT && get_device () == FH_FS && allow_ntsec && has_acls ())
set_security_attribute (mode, &sa, sd);
x = CreateFile (get_win32_name (), access, shared, &sa, creation_distribution,