This is the mail archive of the
cygwin-developers@sourceware.cygnus.com
mailing list for the Cygwin project.
pw_comment
- To: cygwin-developers at sourceware dot cygnus dot com
- Subject: pw_comment
- From: "Fifer, Eric" <EFifer at sanwaint dot com>
- Date: Mon, 31 Jan 2000 11:30:01 -0000
I've been seeing a minor problem where sometimes the
pw_comment member of struct passwd is not NULL.
I know pw_comment is not used, but nevertheless it does
appear in struct passwd. Anyways, this fixes the problem:
--- winsup/cygwin/passwd.cc- Wed Oct 20 02:54:06 1999
+++ winsup/cygwin/passwd.cc Mon Jan 31 11:13:34 2000
@@ -82,6 +82,7 @@
res.pw_passwd = grab_string (&mybuf);
res.pw_uid = grab_int (&mybuf);
res.pw_gid = grab_int (&mybuf);
+ res.pw_comment = 0;
res.pw_gecos = grab_string (&mybuf);
res.pw_dir = grab_string (&mybuf);
res.pw_shell = grab_string (&mybuf);
Thanks.
Eric Fifer