pw_comment
Fifer, Eric
EFifer@sanwaint.com
Mon Jan 31 03:33:00 GMT 2000
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
More information about the Cygwin-developers
mailing list