Subject: groupdel gives no error like userdel does
To: None <tech-userlevel@netbsd.org>
From: Geert Hendrickx <geert.hendrickx@ua.ac.be>
List: tech-userlevel
Date: 06/14/2005 13:41:47
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