Ticket #36171: openssh.diff
File openssh.diff, 2.2 KB (added by arthurmesh@…, 12 years ago) |
---|
-
net/openssh/files/apple-keychain.patch
331 331 + if (-1 == (ngroups = getgrouplist_2(pw->pw_name, pw->pw_gid, 332 332 + &groups_bygid))) { 333 333 + logit("getgrouplist_2 failed"); 334 + return ;334 + return 0; 335 335 + } 336 336 +#endif 337 337 groups_byname = xcalloc(ngroups, sizeof(*groups_byname)); … … 342 342 + if (getgrouplist(pw->pw_name, pw->pw_gid, groups_bygid, &ngroups) == -1) { 343 343 + logit("getgrouplist: groups list too small"); 344 344 + xfree(groups_bygid); 345 + return ;345 + return 0; 346 346 + } 347 347 +#endif 348 348 for (i = 0, j = 0; i < ngroups; i++) -
net/openssh/files/openssh-5.9p1-gsskex-all-20110920.patch
180 180 loginrec.o auth-pam.o auth-shadow.o auth-sia.o md5crypt.o \ 181 181 sftp-server.o sftp-common.o \ 182 182 roaming_common.o roaming_serv.o \ 183 diff --git a/auth-krb5.c b/auth-krb5.c 184 index d019fe2..8219133 100644 185 --- a/auth-krb5.c 186 +++ b/auth-krb5.c 187 @@ -170,8 +170,13 @@ auth_krb5_password(Authctxt *authctxt, const char *password) 183 --- a/auth-krb5.c 2012-04-25 16:52:15.000000000 -0700 184 +++ b/auth-krb5.c 2012-09-16 22:34:03.000000000 -0700 185 @@ -170,8 +170,13 @@ 188 186 189 187 len = strlen(authctxt->krb5_ticket_file) + 6; 190 188 authctxt->krb5_ccname = xmalloc(len); … … 198 196 199 197 #ifdef USE_PAM 200 198 if (options.use_pam) 201 @@ -226,15 +231,22 @@ krb5_cleanup_proc(Authctxt *authctxt)199 @@ -226,15 +231,22 @@ 202 200 #ifndef HEIMDAL 203 201 krb5_error_code 204 202 ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) { 205 - int tmpfd, ret ;206 + int ret ;203 - int tmpfd, ret, oerrno; 204 + int ret, oerrno; 207 205 char ccname[40]; 208 206 mode_t old_umask; 209 207 +#ifdef USE_CCAPI … … 222 220 +#ifndef USE_CCAPI 223 221 old_umask = umask(0177); 224 222 tmpfd = mkstemp(ccname + strlen("FILE:")); 225 umask(old_umask);226 @@ -2 49,6 +261,7 @@ ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) {227 return errno;223 oerrno = errno; 224 @@ -251,6 +263,7 @@ 225 return oerrno; 228 226 } 229 227 close(tmpfd); 230 228 +#endif