Changeset 3232 in MondoRescue for branches/3.2/mindi-busybox/libbb/correct_password.c
- Timestamp:
- Jan 1, 2014, 12:47:38 AM (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/3.2/mindi-busybox/libbb/correct_password.c
r2725 r3232 42 42 const char *correct; 43 43 int r; 44 #if ENABLE_FEATURE_SHADOWPASSWDS45 /* Using _r function to avoid pulling in static buffers */46 struct spwd spw;47 char buffer[256];48 #endif49 50 44 /* fake salt. crypt() can choke otherwise. */ 51 45 correct = "aa"; … … 56 50 correct = pw->pw_passwd; 57 51 #if ENABLE_FEATURE_SHADOWPASSWDS 52 /* Using _r function to avoid pulling in static buffers */ 58 53 if ((correct[0] == 'x' || correct[0] == '*') && !correct[1]) { 54 struct spwd spw; 55 char buffer[256]; 59 56 /* getspnam_r may return 0 yet set result to NULL. 60 57 * At least glibc 2.4 does this. Be extra paranoid here. */
Note:
See TracChangeset
for help on using the changeset viewer.