Subject: Re: groupdel gives no error like userdel does
To: None <email@example.com>
From: Liam J. Foy <firstname.lastname@example.org>
Date: 06/14/2005 17:16:44
On Tue(14)/Jun/05 - , Geert Hendrickx wrote:
> 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?
> (I'm not subscribed to this list, so please CC me any followups, thanks)
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