Bug 23876 - vuserinfo not showing comment field and flag "-a" is broken
Bug#: 23876 Product:  Gentoo Linux Version: unspecified Platform: x86
OS/Version: Linux Status: RESOLVED Severity: normal Priority: P2
Resolution: FIXED Assigned To: robbat2@gentoo.org Reported By: cjames@callone.net
Component: Server
URL: 
Summary: vuserinfo not showing comment field and flag "-a" is broken
Keywords:  
Status Whiteboard: 
Opened: 2003-07-02 09:43 0000
Description:   Opened: 2003-07-02 09:43 0000
The options for vuserinfo say that the comment field should be displayed by 
default.  It is not.  In addition the flag -a for "display all fields" actually 
show no fields.  The following patch will fix vuserinfo.c

195c195
<                               DisplayAll = 1;
---
>                               DisplayAll = 0;
232d231
<         printf("comment:%s\n", mypw->pw_gecos);


Reproducible: Always
Steps to Reproduce:
1. vuserinfo test1@test.com
2. vuserinfo -a test1@test.com
3.

Actual Results:  
For step 1 I got everthing minus the comment
For step 2 Nothing was returned

Expected Results:  
Step 1 should have given the comment field. (It does when using -c)
Step 2 should have given all fields.

Portage 2.0.48-r1 (default-x86-1.4, gcc-3.2.2, glibc-2.3.1-r4)
=================================================================
System uname: 2.4.21_rc2-gss i686 Intel(R) Pentium(R) 4 CPU 2.40GHz
GENTOO_MIRRORS="http://gentoo.oregonstate.edu 
http://distro.ibiblio.org/pub/Linux/distributions/gentoo"
CONFIG_PROTECT="/etc /var/qmail/control /usr/share/config /usr/kde/2/share/confi
g /usr/kde/3/share/config"
CONFIG_PROTECT_MASK="/etc/gconf /etc/env.d"
PORTDIR="/usr/portage"
DISTDIR="/usr/portage/distfiles"
PKGDIR="/usr/portage/packages"
PORTAGE_TMPDIR="/var/tmp"
PORTDIR_OVERLAY=""
USE="x86 oss apm arts avi crypt encode gif imlib jpeg kde libg++ mikmod motif 
mpeg ncurses oggvorbis opengl pdflib png quicktime sdl spell svga xml2 xmms xv 
zlib gdbm berkdb slang readline java gpm tcpd pam libwww ssl perl python -X -
gtk -gnome -alsa -nls -mmx -3dnow -truetype -cups -qt"
COMPILER="gcc3"
CHOST="i686-pc-linux-gnu"
CFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
CXXFLAGS="-march=pentium4 -O3 -pipe -fomit-frame-pointer"
ACCEPT_KEYWORDS="x86"
MAKEOPTS="-j2"
AUTOCLEAN="yes"
SYNC="rsync://rsync.gentoo.org/gentoo-portage"
FEATURES="sandbox ccache"

------- Comment #1 From Robin Johnson 2003-08-06 02:33:54 0000 -------
Mentioning vpopmail would have got this assigned to me sooner.


------- Comment #2 From Robin Johnson 2003-08-06 02:34:03 0000 -------
Fixed in CVS now.