[PATCH - RESEND ] new features for deluser/delgroup (with correct patch)

Denis Vlasenko vda.linux at googlemail.com
Sat Apr 14 21:58:48 UTC 2007


On Saturday 14 April 2007 22:44, Tito wrote:
> this patch adds support to delgroup to 
> remove an user from a specific group
> if called with two non-option arguments
> (to be coherent with addgroup which allows us
> to add an user to an existing group).
> This feature is optional and turned off by default.
> This patch if CONFIG_DESKTOP is enabled also
> adds a warning when we try to remove the primary group of an existing user.

Is it something which deluser does on any common Linux distro?

I'm asking because sometimes there is a vicious circle
of feature creep:

distro1                                 distro2
implement <utility>                     implement <utility>

hey, let's add <feature>, it's useful

                                        shit, need to be compat with distro1,
                                        implement <feature1>

                                        hey, let's add <feature2>, it's useful

shit, need to be compat with distro2,
implement <feature2>


and so on. Like recent introduction of -delete to find by findutils team.
<rant target=findutils_team>
Oh yes, let's add all kinds of stuff now to find! -touch, anyone?
-copy-to $path? -rm-rf? -copy-using-scp $host_and_path?
Maybe -echo_the_FILENAME_is_old for echo "The $filename is too old"?)
</rant>

(Tito, your addition of -delete is ok, you had to follow what findutils did).

We have to do "shit, need to be compat with" part of this game,
but let's try to abstain from "hey, let's add <featureN>" part as much
as possible.
--
vda



More information about the busybox mailing list