Your message dated Thu, 13 Apr 2006 15:02:29 +0200
with message-id <[EMAIL PROTECTED]>
and subject line Bug#341202: Re: [Adduser-devel] Bug#341202: still reproductible
has caused the attached Bug report to be marked as done.

This means that you claim that the problem has been dealt with.
If this is not the case it is now your responsibility to reopen the
Bug report if necessary, and/or fix the problem forthwith.

(NB: If you are a system administrator and have no idea what I am
talking about this indicates a serious mail system misconfiguration
somewhere.  Please contact me immediately.)

Debian bug tracking system administrator
(administrator, Debian Bugs database)

--- Begin Message ---
Package: adduser
Version: 3.77
Severity: important
Tags: patch

Problem:
chfn puts default value for all non-specified fields.
only the last call to chfn have effect.

Solution:
do only one call to chfn

Proposed code:


sub ch_gecos {
    my $gecos = shift;
    my @gparm=('-f', $gecos);    
    if($gecos =~ /,/)
      {
        my($gecos_name,$gecos_room,$gecos_work,$gecos_home,$gecos_other)
            = split(/,/,$gecos);
        @gparm=('-f', $gecos_name, '-r', $gecos_room);    
        push(@gparm,'-w', $gecos_work)
            if(defined($gecos_work));
        push(@gparm,'-h', $gecos_home)
            if(defined($gecos_home));
        push(@gparm,'-o', $gecos_other)
            if(defined($gecos_other));
      }
    &systemcall('/usr/bin/chfn', @gparm, $new_name);
}


-- System Information:
Debian Release: testing/unstable
  APT prefers testing
  APT policy: (500, 'testing'), (500, 'stable')
Architecture: i386 (i586)
Shell:  /bin/sh linked to /bin/bash
Kernel: Linux 2.4.23
Locale: [EMAIL PROTECTED], [EMAIL PROTECTED] (charmap=ISO-8859-15) (ignored: 
LC_ALL set to [EMAIL PROTECTED])

Versions of packages adduser depends on:
ii  debconf [debconf-2.0]         1.4.59     Debian configuration management sy
ii  passwd                        1:4.0.13-1 change and administer password and
ii  perl-base                     5.8.7-7    The Pathologically Eclectic Rubbis

adduser recommends no packages.

-- debconf information:
* adduser/homedir-permission: true


--- End Message ---
--- Begin Message ---
> If no answer is received by 2006-03-31, I'm going to close this bug.

No answer received, closing bug.

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

--- End Message ---

Reply via email to