Ignore:
Timestamp:
Jan 1, 2014, 12:47:38 AM (10 years ago)
Author:
Bruno Cornec
Message:
  • Update mindi-busybox to 1.21.1
File:
1 edited

Legend:

Unmodified
Added
Removed
  • branches/3.2/mindi-busybox/libbb/correct_password.c

    r2725 r3232  
    4242    const char *correct;
    4343    int r;
    44 #if ENABLE_FEATURE_SHADOWPASSWDS
    45     /* Using _r function to avoid pulling in static buffers */
    46     struct spwd spw;
    47     char buffer[256];
    48 #endif
    49 
    5044    /* fake salt. crypt() can choke otherwise. */
    5145    correct = "aa";
     
    5650    correct = pw->pw_passwd;
    5751#if ENABLE_FEATURE_SHADOWPASSWDS
     52    /* Using _r function to avoid pulling in static buffers */
    5853    if ((correct[0] == 'x' || correct[0] == '*') && !correct[1]) {
     54        struct spwd spw;
     55        char buffer[256];
    5956        /* getspnam_r may return 0 yet set result to NULL.
    6057         * At least glibc 2.4 does this. Be extra paranoid here. */
Note: See TracChangeset for help on using the changeset viewer.