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_old_entries(const struct _info* lst, struct _node** passwd,
                         struct _node* master, const char* descr)
{
    struct _node* walk = *passwd;

    while (walk)
    {
        if ((walk->id < 0) || (walk->id > 99))
        {
            walk = walk->next;
            continue;
        }

        if (noautoremove(lst, walk->id))
        {
            walk = walk->next;
            continue;
        }

        if (find_by_named_entry(master, walk) == NULL)
        {
            struct _node* oldnode = walk;

            if (opt_verbose)
                printf("Removing %s \"%s\" (%u)\n", descr, oldnode->name,
                       oldnode->id);

            walk = walk->next;
            remove_node(passwd, oldnode);
            flag_dirty++;
            continue;
        }
        walk = walk->next;
    }
}
/* Check if accounts should be removed. Like with process_new_accounts we
 * don't update shadow here since it is verified at a later stage anyway.
 * We will only remove accounts in our range (uids 0-99).
 */
Check if accounts should be removed. Like with process_new_accounts we
don't update shadow here since it is verified at a later stage anyway.
We will only remove accounts in our range (uids 0-99).
Check if accounts should be removed . Like with process_new_accounts we don ' t update shadow here since it is verified at a later stage anyway . We will only remove accounts in our range ( uids 0 - 99 ) .
void process_old_entries(const struct _info* lst, struct _node** passwd,
                         struct _node* master, const char* descr)
{
    struct _node* walk = *passwd;
    while (walk)
    {
        if ((walk->id < 0) || (walk->id > 99))
        {
            walk = walk->next;
            continue;
        }
        if (noautoremove(lst, walk->id))
        {
            walk = walk->next;
            continue;
        }
        if (find_by_named_entry(master, walk) == NULL)
        {
            struct _node* oldnode = walk;
            if (opt_verbose)
                printf("Removing %s \"%s\" (%u)\n", descr, oldnode->name,
                       oldnode->id);
            walk = walk->next;
            remove_node(passwd, oldnode);
            flag_dirty++;
            continue;
        }
        walk = walk->next;
    }
}
void process_old_entries ( const struct _info * lst , struct _node * * passwd , struct _node * master , const char * descr ) { struct _node * walk = * passwd ; while ( walk ) { if ( ( walk -> id < 0 ) || ( walk -> id > 99 ) ) { walk = walk -> next ; continue ; } if ( noautoremove ( lst , walk -> id ) ) { walk = walk -> next ; continue ; } if ( find_by_named_entry ( master , walk ) == NULL ) { struct _node * oldnode = walk ; if ( opt_verbose ) printf ( " \" \" \n " , descr , oldnode -> name , oldnode -> id ) ; walk = walk -> next ; remove_node ( passwd , oldnode ) ; flag_dirty ++ ; continue ; } walk = walk -> next ; } }
Check if accounts should be removed.
Check if accounts should be removed .