openbmc/build/tmp/deploy/sdk/witherspoon-2019-08-08/sysroots/armv6-openbmc-linux-gnueabi/usr/src/debug/base-passwd/3.5.29-r0/base-passwd-3.5.29/update-passwd.c
void process_moved_entries(const struct _info* lst, struct _node** passwd,
                           struct _node* master, const char* descr)
{
    struct _node* walk = *passwd;

    while (walk)
    {
        if (strcmp(walk->name, "+") == 0)
        {
            walk = walk->next;
            break;
        }
        walk = walk->next;
    }
    while (walk)
    {
        if (find_by_named_entry(master, walk))
        {
            if (!noautoadd(lst, walk->id))
            {
                struct _node* movednode = walk;
                walk = walk->next;
                remove_node(passwd, movednode);
                add_node(passwd, movednode, 1);
                flag_dirty++;

                if (opt_verbose)
                    printf("Moving %s \"%s\" (%u) to before \"+\" entry\n",
                           descr, movednode->name, movednode->id);
                continue;
            }
        }
        walk = walk->next;
    }
}
/* Check if we need to move any master file entries above NIS compat
 * switching entries ("+").
 */
Check if we need to move any master file entries above NIS compat
switching entries ("+").
Check if we need to move any master file entries above NIS compat switching entries ( " + " ) .
void process_moved_entries(const struct _info* lst, struct _node** passwd,
                           struct _node* master, const char* descr)
{
    struct _node* walk = *passwd;
    while (walk)
    {
        if (strcmp(walk->name, "+") == 0)
        {
            walk = walk->next;
            break;
        }
        walk = walk->next;
    }
    while (walk)
    {
        if (find_by_named_entry(master, walk))
        {
            if (!noautoadd(lst, walk->id))
            {
                struct _node* movednode = walk;
                walk = walk->next;
                remove_node(passwd, movednode);
                add_node(passwd, movednode, 1);
                flag_dirty++;
                if (opt_verbose)
                    printf("Moving %s \"%s\" (%u) to before \"+\" entry\n",
                           descr, movednode->name, movednode->id);
                continue;
            }
        }
        walk = walk->next;
    }
}
void process_moved_entries ( const struct _info * lst , struct _node * * passwd , struct _node * master , const char * descr ) { struct _node * walk = * passwd ; while ( walk ) { if ( strcmp ( walk -> name , " " ) == 0 ) { walk = walk -> next ; break ; } walk = walk -> next ; } while ( walk ) { if ( find_by_named_entry ( master , walk ) ) { if ( ! noautoadd ( lst , walk -> id ) ) { struct _node * movednode = walk ; walk = walk -> next ; remove_node ( passwd , movednode ) ; add_node ( passwd , movednode , 1 ) ; flag_dirty ++ ; if ( opt_verbose ) printf ( " \" \" \" \" \n " , descr , movednode -> name , movednode -> id ) ; continue ; } } walk = walk -> next ; } }
Check if we need to move any master file entries above NIS compat
 switching entries ("+").
Check if we need to move any master file entries above NIS compat switching entries ( " + " ) .