From 9aa4a0e39ea568b5481f100645106e1ac1d46883 Mon Sep 17 00:00:00 2001 From: Eric Blake Date: Mon, 30 Apr 2007 12:00:07 +0000 Subject: [PATCH] Prefer fseeko to fseek. * modules/getpass (Depends-on): Add fseeko. * lib/getpass.c (getpass): Use fseeko, not fseek. --- ChangeLog | 6 ++++++ lib/getpass.c | 4 ++-- modules/getpass | 1 + 3 files changed, 9 insertions(+), 2 deletions(-) diff --git a/ChangeLog b/ChangeLog index f00f1512f..8bc482494 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,9 @@ +2007-04-30 Eric Blake + + Prefer fseeko to fseek. + * modules/getpass (Depends-on): Add fseeko. + * lib/getpass.c (getpass): Use fseeko, not fseek. + 2007-04-30 Sergey Poznyakoff * lib/argp-help.c (hol_entry_cmp): Option sorting algorithm diff --git a/lib/getpass.c b/lib/getpass.c index 5b39b6d81..4ae233305 100644 --- a/lib/getpass.c +++ b/lib/getpass.c @@ -1,4 +1,4 @@ -/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006 Free Software +/* Copyright (C) 1992-2001, 2003, 2004, 2005, 2006, 2007 Free Software Foundation, Inc. This file is part of the GNU C Library. @@ -142,7 +142,7 @@ getpass (const char *prompt) == fileno (out). The POSIX restrictions are tricky and change from POSIX version to POSIX version, so play it safe and invoke fseek even if in != out. */ - fseek (out, 0, SEEK_CUR); + fseeko (out, 0, SEEK_CUR); if (buf != NULL) { diff --git a/modules/getpass b/modules/getpass index 52fc1a3ee..7a465048b 100644 --- a/modules/getpass +++ b/modules/getpass @@ -7,6 +7,7 @@ lib/getpass.c m4/getpass.m4 Depends-on: +fseeko getline stdbool -- 2.11.0