openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/shadow/4.6-r0/shadow-4.6/src/groupmod.c
static void new_sgent(struct sgrp* sgent)
{
    if (nflg)
    {
        sgent->sg_name = xstrdup(group_newname);
    }

    /* Always update the shadowed password if there is a shadow entry
     * (even if shadowed passwords might not be enabled for this group
     * (gr_passwd != "x")).
     * It seems better to update the password in both places in case a
     * shadow and a non shadow entry exist.
     * This might occur only if there were already both entries.
     */
    if (pflg)
    {
        sgent->sg_passwd = group_passwd;
    }
}
/*
 * new_sgent - updates the values in a shadow group file entry
 *
 *	new_sgent() takes all of the values that have been entered and fills
 *	in a (struct sgrp) with them.
 */
updates the values in a shadow group file entry
new_sgent() takes all of the values that have been entered and fills
in a (struct sgrp) with them.
updates the values in a shadow group file entry new_sgent () takes all of the values that have been entered and fills in a ( struct sgrp ) with them .
static void new_sgent(struct sgrp* sgent)
{
    if (nflg)
    {
        sgent->sg_name = xstrdup(group_newname);
    }
    if (pflg)
    {
        sgent->sg_passwd = group_passwd;
    }
}
static void new_sgent ( struct sgrp * sgent ) { if ( nflg ) { sgent -> sg_name = xstrdup ( group_newname ) ; } if ( pflg ) { sgent -> sg_passwd = group_passwd ; } }
new_sgent - updates the values in a shadow group file entry
      new_sgent() takes all of the values that have been entered and fills
      in a (struct sgrp) with them.
new_sgent - updates the values in a shadow group file entry new_sgent () takes all of the values that have been entered and fills in a ( struct sgrp ) with them .
/* Always update the shadowed password if there is a shadow entry
     * (even if shadowed passwords might not be enabled for this group
     * (gr_passwd != "x")).
     * It seems better to update the password in both places in case a
     * shadow and a non shadow entry exist.
     * This might occur only if there were already both entries.
     */