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_new_entries(const struct _info* lst, struct _node** passwd,
                         struct _node* master, const char* descr)
{
    while (master)
    {
        if (find_by_named_entry(*passwd, master) == NULL)
        {
            struct _node* newnode;

            if (noautoadd(lst, master->id))
            {
                master = master->next;
                continue;
            }

            newnode = copy_node(master);
            add_node(passwd, newnode, 1);
            flag_dirty++;

            if (opt_verbose)
                printf("Adding %s \"%s\" (%u)\n", descr, newnode->name,
                       newnode->id);
        }
        master = master->next;
    }
}
/* Check if new accounts should be made on the system. Please note we don't
 * add accounts to shadow here; those will be made automatically at a later
 * stage where we verify the contents of the shadow database
 */
Check if new accounts should be made on the system. Please note we don't
add accounts to shadow here; those will be made automatically at a later
stage where we verify the contents of the shadow database
Check if new accounts should be made on the system . Please note we don ' t add accounts to shadow here ; those will be made automatically at a later stage where we verify the contents of the shadow database
void process_new_entries(const struct _info* lst, struct _node** passwd,
                         struct _node* master, const char* descr)
{
    while (master)
    {
        if (find_by_named_entry(*passwd, master) == NULL)
        {
            struct _node* newnode;
            if (noautoadd(lst, master->id))
            {
                master = master->next;
                continue;
            }
            newnode = copy_node(master);
            add_node(passwd, newnode, 1);
            flag_dirty++;
            if (opt_verbose)
                printf("Adding %s \"%s\" (%u)\n", descr, newnode->name,
                       newnode->id);
        }
        master = master->next;
    }
}
void process_new_entries ( const struct _info * lst , struct _node * * passwd , struct _node * master , const char * descr ) { while ( master ) { if ( find_by_named_entry ( * passwd , master ) == NULL ) { struct _node * newnode ; if ( noautoadd ( lst , master -> id ) ) { master = master -> next ; continue ; } newnode = copy_node ( master ) ; add_node ( passwd , newnode , 1 ) ; flag_dirty ++ ; if ( opt_verbose ) printf ( " \" \" \n " , descr , newnode -> name , newnode -> id ) ; } master = master -> next ; } }
Check if new accounts should be made on the system.
Check if new accounts should be made on the system .