delorie.com/archives/browse.cgi   search  
Mail Archives: cygwin-developers/2000/01/31/06:27:39

Mailing-List: contact cygwin-developers-help AT sourceware DOT cygnus DOT com; run by ezmlm
List-Subscribe: <mailto:cygwin-developers-subscribe AT sourceware DOT cygnus DOT com>
List-Archive: <http://sourceware.cygnus.com/ml/cygwin-developers/>
List-Post: <mailto:cygwin-developers AT sourceware DOT cygnus DOT com>
List-Help: <mailto:cygwin-developers-help AT sourceware DOT cygnus DOT com>, <http://sourceware.cygnus.com/ml/#faqs>
Sender: cygwin-developers-owner AT sourceware DOT cygnus DOT com
Delivered-To: mailing list cygwin-developers AT sourceware DOT cygnus DOT com
Message-ID: <779F20BCCE5AD31186A50008C75D99791716CD@SILLDN_MAIL1>
From: "Fifer, Eric" <EFifer AT sanwaint DOT com>
To: cygwin-developers AT sourceware DOT cygnus DOT com
Subject: pw_comment
Date: Mon, 31 Jan 2000 11:30:01 -0000
MIME-Version: 1.0
X-Mailer: Internet Mail Service (5.5.2448.0)

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
 

- Raw text -


  webmaster     delorie software   privacy  
  Copyright © 2019   by DJ Delorie     Updated Jul 2019