- (dtucker) [auth-krb5.c] Fix -Wsign-compare warning in non-Heimdal path.

Patch from djm@.
This commit is contained in:
Darren Tucker 2005-11-10 14:43:11 +11:00
parent 063ba7455f
commit 618db97fe1
2 changed files with 4 additions and 2 deletions

View File

@ -6,6 +6,8 @@
unnecessary prototype.
- (dtucker) [openbsd-compat/setenv.c] Sync changes from OpenBSD setenv.c
revs 1.7 - 1.9.
- (dtucker) [auth-krb5.c] Fix -Wsign-compare warning in non-Heimdal path.
Patch from djm@.
20051105
- (djm) OpenBSD CVS Sync
@ -3248,4 +3250,4 @@
- (djm) Trim deprecated options from INSTALL. Mention UsePAM
- (djm) Fix quote handling in sftp; Patch from admorten AT umich.edu
$Id: ChangeLog,v 1.3957 2005/11/09 23:38:45 dtucker Exp $
$Id: ChangeLog,v 1.3958 2005/11/10 03:43:11 dtucker Exp $

View File

@ -218,7 +218,7 @@ ssh_krb5_cc_gen(krb5_context ctx, krb5_ccache *ccache) {
ret = snprintf(ccname, sizeof(ccname),
"FILE:/tmp/krb5cc_%d_XXXXXXXXXX", geteuid());
if (ret == -1 || ret >= sizeof(ccname))
if (ret < 0 || (size_t)ret >= sizeof(ccname))
return ENOMEM;
old_umask = umask(0177);