[prev in list] [next in list] [prev in thread] [next in thread] 

List:       busybox
Subject:    Re: R: Re: applet delgroup is incomplete (bb 1.17.2)
From:       Harald Becker <ralda () gmx ! de>
Date:       2010-09-21 8:12:56
Message-ID: 4C986908.8010604 () gmx ! de
[Download RAW message or body]

 Hi Tito!

> Just one hint, take a cup of coffe and then look at the code:
> 		if (ENABLE_DELUSER
> 		 && (!ENABLE_DELGROUP || 
> applet_name[3] == 'u')
> 		) {
> 			if (del_line_matching(argv, 
> bb_path_passwd_file) < 0)
> 				return EXIT_FAILURE;
> 			if 
> (ENABLE_FEATURE_SHADOWPASSWDS) {
> 				del_line_matching(argv, 
> bb_path_shadow_file);
> 			}
> 		}
>
> then try to think about what you want to accomplish:
And where should there be the code to delete a user of name NAME from a
group of name GROUP?

I do only see code to delete a line matching argv from the files passwd
and shadow, that is to delete a user of name NAME from passwd or shadow.
And if you continue that code listing you find code to delete a line
matching a group named GROUP from the file group or gshadow ... but
where is the code to delete the entry of the user NAME from the line of
the group GROUP in file groups/gshadow, that is the code, that just
removes the user name from the line in the group file (the reverse of
addgroup NAME GROUP)???

Sorry, but slowly getting frustrated ...

Harald

_______________________________________________
busybox mailing list
busybox@busybox.net
http://lists.busybox.net/mailman/listinfo/busybox
[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic