Remove a comment which states that an user shall provide a password to
switch to her group.
This commit is contained in:
parent
8e568ef697
commit
225b096838
@ -79,6 +79,7 @@
|
|||||||
newgrp to switch to her primary group.
|
newgrp to switch to her primary group.
|
||||||
This fixes http://bugs.debian.org/396691.
|
This fixes http://bugs.debian.org/396691.
|
||||||
Debian patch 497_newgrp_primary_group.
|
Debian patch 497_newgrp_primary_group.
|
||||||
|
* src/newgrp.c: Remove a comment which states otherwise.
|
||||||
|
|
||||||
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
|
2007-11-17 Nicolas François <nicolas.francois@centraliens.net>
|
||||||
|
|
||||||
|
@ -371,13 +371,10 @@ int main (int argc, char **argv)
|
|||||||
needspasswd = 1;
|
needspasswd = 1;
|
||||||
|
|
||||||
/*
|
/*
|
||||||
* Now i see about letting her into the group she requested. If she
|
* Now I see about letting her into the group she requested. If she
|
||||||
* is the root user, i'll let her in without having to prompt for
|
* is the root user, I'll let her in without having to prompt for
|
||||||
* the password. Otherwise i ask for a password if she flunked one
|
* the password. Otherwise I ask for a password if she flunked one
|
||||||
* of the tests above.
|
* of the tests above.
|
||||||
*
|
|
||||||
* Note that she now has to provide the password to her own group,
|
|
||||||
* unless she is listed as a member. -- JWP
|
|
||||||
*/
|
*/
|
||||||
if (getuid () != 0 && needspasswd) {
|
if (getuid () != 0 && needspasswd) {
|
||||||
if (grp->gr_passwd[0] == '\0') {
|
if (grp->gr_passwd[0] == '\0') {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user