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 check_new_gid(void)
{
    /*
     * First, the easy stuff. If the ID can be duplicated, or if the ID
     * didn't really change, just return. If the ID didn't change, turn
     * off those flags. No sense doing needless work.
     */
    if (group_id == group_newid)
    {
        gflg = 0;
        return;
    }

    if (oflg ||
        (getgrgid(group_newid) == NULL) /* local, no need for xgetgrgid */
    )
    {
        return;
    }

    /*
     * Tell the user what they did wrong.
     */
    fprintf(stderr, _("%s: GID '%lu' already exists\n"), Prog,
            (unsigned long int)group_newid);
    exit(E_GID_IN_USE);
}
/*
 * check_new_gid - check the new GID value for uniqueness
 *
 *	check_new_gid() insures that the new GID value is unique.
 */
check the new GID value for uniqueness
check_new_gid() insures that the new GID value is unique.
check the new GID value for uniqueness check_new_gid () insures that the new GID value is unique .
static void check_new_gid(void)
{
    if (group_id == group_newid)
    {
        gflg = 0;
        return;
    }
    if (oflg ||
        (getgrgid(group_newid) == NULL) 
    )
    {
        return;
    }
    fprintf(stderr, _("%s: GID '%lu' already exists\n"), Prog,
            (unsigned long int)group_newid);
    exit(E_GID_IN_USE);
}
static void check_new_gid ( void ) { if ( group_id == group_newid ) { gflg = 0 ; return ; } if ( oflg || ( getgrgid ( group_newid ) == NULL ) ) { return ; } fprintf ( stderr , _ ( " \n " ) , Prog , ( unsigned long int ) group_newid ) ; exit ( E_GID_IN_USE ) ; }
check_new_gid - check the new GID value for uniqueness
      check_new_gid() insures that the new GID value is unique.
check_new_gid - check the new GID value for uniqueness check_new_gid () insures that the new GID value is unique .
/*
     * First, the easy stuff. If the ID can be duplicated, or if the ID
     * didn't really change, just return. If the ID didn't change, turn
     * off those flags. No sense doing needless work.
     */ /* local, no need for xgetgrgid */ /*
     * Tell the user what they did wrong.
     */