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>2000-06-25 07:48:10 +0400
committerChristopher Faylor <me@cgf.cx>2000-06-25 07:48:10 +0400
commit84a1af74a218779daac9b1e2e2634701ecd5f388 (patch)
tree2acd18de3cdaa8ffba13df13b3d055bf777237a9 /winsup/cygwin/grp.cc
parent749bdbe92a383d2ea92897a5d0bc843198602aad (diff)
* grp.cc (read_etc_group): Open file in text mode.
* pwd.cc (read_etc_passwd): Ditto. * shared.h: Bump PROC_MAGIC.
Diffstat (limited to 'winsup/cygwin/grp.cc')
-rw-r--r--winsup/cygwin/grp.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/winsup/cygwin/grp.cc b/winsup/cygwin/grp.cc
index 2009275c7..79b1157af 100644
--- a/winsup/cygwin/grp.cc
+++ b/winsup/cygwin/grp.cc
@@ -131,7 +131,7 @@ read_etc_group ()
strncpy (group_name, "Administrators", sizeof (group_name));
++group_sem;
- FILE *f = fopen (etc_group, "r");
+ FILE *f = fopen (etc_group, "rt");
--group_sem;
if (f)