summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2001-09-06 03:39:18 +0000
committerChristopher Faylor <me@cgf.cx>2001-09-06 03:39:18 +0000
commit4ce15a498010f678c71cefdf2a2ac0db58f4fa93 (patch)
tree67498c2416dddf7295358edc848708c05ac3d047 /winsup/cygwin/fhandler.cc
parent0fb61528c94f959e5c1bfc9aeab7e09d0dcbf54b (diff)
downloadcygnal-4ce15a498010f678c71cefdf2a2ac0db58f4fa93.tar.gz
cygnal-4ce15a498010f678c71cefdf2a2ac0db58f4fa93.tar.bz2
cygnal-4ce15a498010f678c71cefdf2a2ac0db58f4fa93.zip
* cygheap.h (init_cygheap): Move bucket array here from cygheap.cc.
* cygheap.cc: Throughout use bucket array from cygheap. * sigproc.cc (proc_subproc): Dynamically allocate zombie buffer to save DLL space. (sigproc_fixup_after_fork): Free zombie array after a fork. * sigproc.h (sigproc_fixup_after_fork): Declare. * dir.cc (mkdir): Expand buffer for security descriptor to 4K to avoid stack corruption. * fhandler.cc (fhandler_base::open): Ditto. * path.cc (symlink): Ditto.
Diffstat (limited to 'winsup/cygwin/fhandler.cc')
-rw-r--r--winsup/cygwin/fhandler.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/fhandler.cc b/winsup/cygwin/fhandler.cc
index 4060a3819..115a4c796 100644
--- a/winsup/cygwin/fhandler.cc
+++ b/winsup/cygwin/fhandler.cc
@@ -387,7 +387,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 && get_device () == FH_DISK && allow_ntsec && has_acls ())
- set_security_attribute (mode, &sa, alloca (256), 256);
+ set_security_attribute (mode, &sa, alloca (4096), 4096);
x = CreateFileA (get_win32_name (), access, shared,
&sa, creation_distribution,