From mboxrd@z Thu Jan 1 00:00:00 1970 Received: (qmail 12491 invoked from network); 9 Jan 1999 18:58:42 -0000 Received: from mail.redhat.com (199.183.24.239) by lists.redhat.com with SMTP; 9 Jan 1999 18:58:42 -0000 Received: from hotmail.com (f132.hotmail.com [207.82.251.11]) by mail.redhat.com (8.8.7/8.8.7) with SMTP id NAA12566 for ; Sat, 9 Jan 1999 13:38:07 -0500 Received: (qmail 1354 invoked by uid 0); 9 Jan 1999 18:37:32 -0000 Message-ID: <19990109183732.1353.qmail@hotmail.com> Received: from 205.230.159.23 by www.hotmail.com with HTTP; Sat, 09 Jan 1999 10:37:31 PST X-Originating-IP: [205.230.159.23] From: "Dumb Kid" To: axp-list@redhat.com Subject: Perl in Redhat5.2 Date: Sat, 09 Jan 1999 18:37:31 GMT Mime-Version: 1.0 Content-Type: text/plain Hi all, I don't know if it's just me or it's a bug in perl package that ship with redhat5.2. I have RedHat5.2 for both Intel and Alpha, and I have no way to get the "gcos" or "realname" of a user in the password file. #!/usr/bin/perl my(@pwent)=getpwnam("root"); print "@pwent\n"; And I can find the realname stored anywhere in @pwent. However, if I do the following in C: #include #include #include main(){ struct passwd *pwent; pwent = getpwnam("root"); printf("(%s)\n", pwent->gecos); } It will show me the "realname", what happened?? Anyone has the same problem?? Regards, Tom ______________________________________________________ Get Your Private, Free Email at http://www.hotmail.com