Subject: Re: bin/32964: mail(1): implement the unalias command
To: None <gnats-admin@netbsd.org, netbsd-bugs@netbsd.org,>
From: Johan Veenhuizen <veenhuizen@users.sourceforge.net>
List: netbsd-bugs
Date: 03/03/2006 13:00:07
The following reply was made to PR bin/32964; it has been noted by GNATS.

From: Johan Veenhuizen <veenhuizen@users.sourceforge.net>
To: gnats-bugs@NetBSD.org
Cc: 
Subject: Re: bin/32964: mail(1): implement the unalias command
Date: Fri, 03 Mar 2006 13:55:29 +0100

 Actually, it would be better *not* to complain about nonexistent
 aliases as the unalias command is most probably used in the .mailrc
 file in order to make sure that an alias is free before adding
 users to it.
 
 --- src/usr.bin/mail/cmd3.c.orig	2006-03-03 12:34:39.000000000 +0100
 +++ src/usr.bin/mail/cmd3.c	2006-03-03 12:35:19.000000000 +0100
 @@ -515,8 +515,7 @@
  	char **ap;
  
  	for (ap = argv; *ap != NULL; ap++)
 -		if (delgroup(*ap) == -1)
 -			(void)printf("No such alias: \"%s\"\n", *ap);
 +		(void)delgroup(*ap);
  	return 0;
  }