[Adduser-devel] deluser code "this needs to be fixed"

Roland Bauerschmidt rb@debian.org
Thu, 25 Mar 2004 13:32:58 +0100


Marc Haber wrote:
>     # This need to be fixed
>     if(system("grep", "-q", "^.*:.*:.*:$gr_gid:.*:.*:.*\$", "/etc/passwd") == 0) {
>         dief (_("There are users having %s' as primary group!\n"),$group);
>     }
> 
> Can you explain the comment? Do you mean that this needs to be
> rewritten using getpwent?

Yes, definitely. I don't remember though, why that's not the case.

Roland