Subject: Re: groupdel gives no error like userdel does
To: None <ghen@telenet.be>
From: Liam J. Foy <liamfoy@sepulcrum.org>
List: tech-userlevel
Date: 06/14/2005 17:56:14
Infact, use the following patch(pointed out by 'riz' =)):
--- user.c.old 2005-06-14 17:25:10.000000000 +0100
+++ user.c 2005-06-14 17:52:41.000000000 +0100
@@ -1990,6 +1990,10 @@
if (argc != 1) {
usermgmt_usage("groupdel");
}
+
+ if (getgrnam(*argv) == NULL) {
+ err(EXIT_FAILURE, "can't find group `%s' to delete", *argv);
+ }
checkeuid();
openlog("groupdel", LOG_PID, LOG_USER);
if (!modify_gid(*argv, NULL)) {
--
- Liam J. Foy
liamfoy@sepulcrum.org