This is the mail archive of the cygwin-developers@sourceware.cygnus.com mailing list for the Cygwin project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

pw_comment



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
 

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]