vishalmishra434 / rpms / openssh

Forked from rpms/openssh a month ago
Clone
Jan F ce0606
diff -up openssh-5.6p1/loginrec.c.orig openssh-5.6p1/loginrec.c
Jan F ce0606
--- openssh-5.6p1/loginrec.c.orig	2010-09-13 11:32:57.000000000 +0200
Jan F ce0606
+++ openssh-5.6p1/loginrec.c	2010-09-13 12:48:25.000000000 +0200
Jan F ce0606
@@ -1548,7 +1548,7 @@ lastlog_openseek(struct logininfo *li, i
Jan F ce0606
 
Jan F ce0606
 	if (S_ISREG(st.st_mode)) {
Jan F ce0606
 		/* find this uid's offset in the lastlog file */
Jan F ce0606
-		offset = (off_t) ((long)li->uid * sizeof(struct lastlog));
Jan F ce0606
+		offset = (off_t) ((long)(unsigned)li->uid * sizeof(struct lastlog));
Jan F ce0606
 
Jan F ce0606
 		if (lseek(*fd, offset, SEEK_SET) != offset) {
Jan F ce0606
 			logit("%s: %s->lseek(): %s", __func__,