View | Details | Raw Unified | Return to bug 1817 | Differences between
and this patch

Collapse All | Expand All

(-)openssh-5.6p1/loginrec.c.orig (-1 / +1 lines)
Lines 1548-1554 lastlog_openseek(struct logininfo *li, i Link Here
1548
1548
1549
	if (S_ISREG(st.st_mode)) {
1549
	if (S_ISREG(st.st_mode)) {
1550
		/* find this uid's offset in the lastlog file */
1550
		/* find this uid's offset in the lastlog file */
1551
		offset = (off_t) ((long)li->uid * sizeof(struct lastlog));
1551
		offset = (off_t) ((long)(unsigned)li->uid * sizeof(struct lastlog));
1552
1552
1553
		if (lseek(*fd, offset, SEEK_SET) != offset) {
1553
		if (lseek(*fd, offset, SEEK_SET) != offset) {
1554
			logit("%s: %s->lseek(): %s", __func__,
1554
			logit("%s: %s->lseek(): %s", __func__,

Return to bug 1817