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:
authorCorinna Vinschen <corinna@vinschen.de>2009-05-06 15:52:20 +0400
committerCorinna Vinschen <corinna@vinschen.de>2009-05-06 15:52:20 +0400
commit764d88e4a75f244b9c92af0ea27cb4bb86f14d4d (patch)
tree62f93af56a40b25738d49435934a40fb4724e0ef /winsup/cygwin/cygheap.cc
parent3227665e1995fe103b31d17fd4a2cddcd6cdde97 (diff)
* cygheap.cc (cygheap_init): Set umask to a sane default.
* uinfo.cc (cygheap_user::ontherange): Don't use HOMEDRIVE/HOMEPATH to set HOME. Default to /home/USERNAME.
Diffstat (limited to 'winsup/cygwin/cygheap.cc')
-rw-r--r--winsup/cygwin/cygheap.cc2
1 files changed, 2 insertions, 0 deletions
diff --git a/winsup/cygwin/cygheap.cc b/winsup/cygwin/cygheap.cc
index bddc6ce66..1e579f341 100644
--- a/winsup/cygwin/cygheap.cc
+++ b/winsup/cygwin/cygheap.cc
@@ -156,6 +156,8 @@ cygheap_init ()
_cygheap_mid - _cygheap_start);
cygheap_max = cygheap;
_csbrk (sizeof (*cygheap));
+ /* Set umask to a sane default. */
+ cygheap->umask = 022;
}
if (!cygheap->fdtab)
cygheap->fdtab.init ();