Changeset 1810 for branches/fc15-dev/server/common
- Timestamp:
- Apr 18, 2011, 6:27:00 PM (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/fc15-dev/server/common/patches/krb5-kuserok-scripts.patch
r1807 r1810 29 29 #if defined(_AIX) && defined(_IBMR2) 30 30 #include <sys/access.h> 31 @@ -100,6 +101,7 @@ 32 struct stat sbuf; 31 @@ -93,13 +94,12 @@ 32 static enum result 33 k5login_ok(krb5_context context, krb5_principal principal, const char *luser) 34 { 35 - int authoritative = TRUE, gobble; 36 + int authoritative = TRUE; 37 enum result result = REJECT; 38 char *filename = NULL, *princname = NULL; 39 - char *newline, linebuf[BUFSIZ], pwbuf[BUFSIZ]; 40 - struct stat sbuf; 41 + char pwbuf[BUFSIZ]; 33 42 struct passwd pwx, *pwd; 34 43 - FILE *fp = NULL; 35 44 + int pid, status; 36 45 37 46 if (profile_get_boolean(context->profile, KRB5_CONF_LIBDEFAULTS, 38 47 KRB5_CONF_K5LOGIN_AUTHORITATIVE, NULL, TRUE, 39 @@ -110,4 1 +112,27@@48 @@ -110,46 +110,30 @@ 40 49 if (k5_getpwnam_r(luser, &pwx, pwbuf, sizeof(pwbuf), &pwd) != 0) 41 50 goto cleanup; … … 94 103 free(princname); 95 104 free(filename); 105 - if (fp != NULL) 106 - fclose(fp); 107 /* If k5login files are non-authoritative, never reject. */ 108 return (!authoritative && result == REJECT) ? PASS : result; 109 }
Note: See TracChangeset
for help on using the changeset viewer.