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>2003-09-09 02:03:20 +0400
committerChristopher Faylor <me@cgf.cx>2003-09-09 02:03:20 +0400
commit7d0e78a71b36e454b195145e4774cefcc3163225 (patch)
treee5da9dac9c991a0f66ff18708feae0b10d8c7260 /winsup
parent7a198a06755c8e232d055e067340976112be176a (diff)
* passwe.cc (getpwnam_r): Initialize pw_comment field.
Diffstat (limited to 'winsup')
-rw-r--r--winsup/cygwin/ChangeLog4
-rw-r--r--winsup/cygwin/passwd.cc1
2 files changed, 5 insertions, 0 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1b847ce38..7c56d7a81 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,5 +1,9 @@
2003-09-08 Christopher Faylor <cgf@redhat.com>
+ * passwe.cc (getpwnam_r): Initialize pw_comment field.
+
+2003-09-08 Christopher Faylor <cgf@redhat.com>
+
* passwd.cc (getpwuid_r32): Initialize pw_comment field.
2003-09-08 Christopher Faylor <cgf@redhat.com>
diff --git a/winsup/cygwin/passwd.cc b/winsup/cygwin/passwd.cc
index c50766b56..dea4a8719 100644
--- a/winsup/cygwin/passwd.cc
+++ b/winsup/cygwin/passwd.cc
@@ -241,6 +241,7 @@ getpwnam_r (const char *nam, struct passwd *pwd, char *buffer, size_t bufsize, s
pwd->pw_dir = pwd->pw_name + strlen (temppw->pw_name) + 1;
pwd->pw_shell = pwd->pw_dir + strlen (temppw->pw_dir) + 1;
pwd->pw_gecos = pwd->pw_shell + strlen (temppw->pw_shell) + 1;
+ pwd->pw_comment = NULL;
pwd->pw_passwd = pwd->pw_gecos + strlen (temppw->pw_gecos) + 1;
strcpy (pwd->pw_name, temppw->pw_name);
strcpy (pwd->pw_dir, temppw->pw_dir);