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
path: root/winsup
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-01-22 18:08:08 +0300
committerChristopher Faylor <me@cgf.cx>2004-01-22 18:08:08 +0300
commit537ca63f8e95a1f4f0c71e40c64c09cdbb0b74bd (patch)
treebcc48ddfc4dd38dc9ffae785a1c7d208e004c355 /winsup
parent30352c261ce01bea8af3a9fa8433ed605f1f5031 (diff)
* fhandler.cc (fhandler_base::open): Revert isfs change.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/fhandler.cc4
2 files changed, 6 insertions, 2 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index cf8c38ece..85a848941 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,7 @@
+2004-01-22 Christopher Faylor <cgf@redhat.com>
+
+ * fhandler.cc (fhandler_base::open): Revert isfs change.
+
2004-01-21 Christopher Faylor <cgf@redhat.com>
* devices.in: Change raw com device to more correct form.
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,