Subject: Re: groupdel gives no error like userdel does
To: None <>
From: Liam J. Foy <>
List: tech-userlevel
Date: 06/14/2005 17:16:44
On Tue(14)/Jun/05 - , Geert Hendrickx wrote:
> Hello, 
> if I (attempt to) userdel a non-existing user, userdel says: 
> > userdel: No such user `johndoe'
> and returns 1.  
> But groupdel gives no such error, and even returns 0, always.  Wouldn't
> it be better if both calls behave similar?  
> I've been looking through the source src/usr.sbin/user/user.c (userdel
> and groupdel are the same binary), but I'm not sure were the error
> should be triggered, in groupdel or in modify_gid.  Any hints on this?  
> GH
> (I'm not subscribed to this list, so please CC me any followups, thanks)  
> -- 
> :wq

This is for sure a bug/problem. If you check /var/log/messages when you try and
delete a non-existant group, it says it's been deleted. I think I have fixed it.

I'll submit a patch soon! =)

		- Liam J. Foy