From: Jim Meyering Date: Sat, 28 Oct 2000 07:47:04 +0000 (+0000) Subject: (setusershell) [HAVE_FSEEKO]: Use fseek0. X-Git-Tag: FILEUTILS-4_0_28~31 X-Git-Url: http://git.ipfire.org/gitweb/index.cgi?a=commitdiff_plain;h=13a9a251d88b7929940a11043b35d751d8fa3d77;p=thirdparty%2Fcoreutils.git (setusershell) [HAVE_FSEEKO]: Use fseek0. Patch by Ulrich Drepper. --- diff --git a/lib/getusershell.c b/lib/getusershell.c index 35f72dbcbd..75163ac26f 100644 --- a/lib/getusershell.c +++ b/lib/getusershell.c @@ -103,7 +103,13 @@ setusershell () if (shellstream == NULL) shellstream = fopen (SHELLS_FILE, "r"); else - fseek (shellstream, 0L, 0); + { +#ifdef HAVE_FSEEKO + fseeko (shellstream, 0, 0); +#else + fseek (shellstream, 0L, 0); +#endif + } } /* Close the shells file. */