From 3ba8da4ab6748c7c39b43cf7f6c43cae19afc082 Mon Sep 17 00:00:00 2001 From: "Todd C. Miller" Date: Tue, 7 Aug 2012 14:42:08 -0400 Subject: [PATCH] Cast 2nd argument of lseek() to off_t if it is a constant for systems with 64-bit off_t but without a proper lseek() prototype. --- plugins/sudoers/iolog.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/plugins/sudoers/iolog.c b/plugins/sudoers/iolog.c index 3047a0338..45dd0aed0 100644 --- a/plugins/sudoers/iolog.c +++ b/plugins/sudoers/iolog.c @@ -225,7 +225,7 @@ io_nextid(char *iolog_dir, char *iolog_dir_fallback, char sessid[7]) sessid[6] = '\0'; /* Rewind and overwrite old seq file. */ - if (lseek(fd, 0, SEEK_SET) == (off_t)-1 || write(fd, buf, 7) != 7) + if (lseek(fd, (off_t)0, SEEK_SET) == (off_t)-1 || write(fd, buf, 7) != 7) log_fatal(USE_ERRNO, _("unable to write to %s"), pathbuf); close(fd); -- 2.50.1