[Adduser-devel] Bug#341202: adduser: gecos option: only last field is set

Marc Haber mh+debian-packages at zugschlus.de
Tue Nov 29 10:23:25 UTC 2005


tags #341202 - patch 
tags #341202 unreproducible moreinfo
thanks

On Tue, Nov 29, 2005 at 08:19:21AM +0100, Christian Gennerat wrote:
> chfn puts default value for all non-specified fields.
> only the last call to chfn have effect.

I cannot reproduce this here:

Script started on Tue Nov 29 10:20:29 2005
$ sudo adduser u341202
Adding user `u341202'...
Adding new group `u341202' (1002).
Adding new user `u341202' (1002) with group `u341202'.
Creating home directory `/home/u341202'.
Copying files from `/etc/skel'
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Changing the user information for u341202
Enter the new value, or press ENTER for the default
	Full Name []: Name
	Room Number []: Room
	Work Phone []: Work
	Home Phone []: Home
	Other []: Other
Is the information correct? [y/N] y
$ grep u3412092 /etc/passwd
u341202:x:1002:1002:Name,Room,Work,Home,Other:/home/u341202:/bin/bash
$ chfn -w WorkNew u341202
$ grep u341202 /etc/passwd
u341202:x:1002:1002:Name,Room,WorkNew,Home,Other:/home/u341202:/bin/bash
$ 
Script done on Tue Nov 29 10:21:08 2005

Please provide a typescript that shows how to reproduce your claim.

Greetings
Marc

-- 
-----------------------------------------------------------------------------
Marc Haber         | "I don't trust Computers. They | Mailadresse im Header
Mannheim, Germany  |  lose things."    Winona Ryder | Fon: *49 621 72739834
Nordisch by Nature |  How to make an American Quilt | Fax: *49 621 72739835




More information about the Adduser-devel mailing list