mirror of
https://git.savannah.gnu.org/git/inetutils.git
synced 2026-01-12 00:19:39 +08:00
Use fseeko instead of fseek.
* libinetutils/tftpsubs.c (write_behind): Use fseeko instead of fseek. * libinetutils/tftpsubs.c (write_behind): Likewise. * ftpd/ftpd.c (store): Likewise. * ftp/ftp.c (recvrequest): Likewise. (sendrequest): Likewise.
This commit is contained in:
10
ChangeLog
10
ChangeLog
@@ -1,3 +1,13 @@
|
||||
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
|
||||
|
||||
Use fseeko instead of fseek.
|
||||
|
||||
* libinetutils/tftpsubs.c (write_behind): Use fseeko instead of fseek.
|
||||
* libinetutils/tftpsubs.c (write_behind): Likewise.
|
||||
* ftpd/ftpd.c (store): Likewise.
|
||||
* ftp/ftp.c (recvrequest): Likewise.
|
||||
(sendrequest): Likewise.
|
||||
|
||||
2010-08-19 Alfred M. Szmidt <ams@gnu.org>
|
||||
|
||||
* cfg.mk (local-checks-to-skip): Removed sc_makefile_check from list.
|
||||
|
||||
@@ -631,7 +631,7 @@ sendrequest (cmd, local, remote, printnames)
|
||||
switch (curtype)
|
||||
{
|
||||
case TYPE_A:
|
||||
rc = fseek (fin, (long) restart_point, SEEK_SET);
|
||||
rc = fseeko (fin, (long) restart_point, SEEK_SET);
|
||||
break;
|
||||
case TYPE_I:
|
||||
case TYPE_L:
|
||||
@@ -997,7 +997,7 @@ recvrequest (cmd, local, remote, lmode, printnames)
|
||||
{
|
||||
int i, n, ch;
|
||||
|
||||
if (fseek (fout, 0L, SEEK_SET) < 0)
|
||||
if (fseeko (fout, 0L, SEEK_SET) < 0)
|
||||
goto done;
|
||||
n = restart_point;
|
||||
for (i = 0; i++ < n;)
|
||||
@@ -1007,7 +1007,7 @@ recvrequest (cmd, local, remote, lmode, printnames)
|
||||
if (ch == '\n')
|
||||
i++;
|
||||
}
|
||||
if (fseek (fout, 0L, SEEK_CUR) < 0)
|
||||
if (fseeko (fout, 0L, SEEK_CUR) < 0)
|
||||
{
|
||||
done:
|
||||
error (0, errno, "local: %s", local);
|
||||
|
||||
@@ -965,7 +965,7 @@ store (const char *name, const char *mode, int unique)
|
||||
/* We must do this seek to "current" position
|
||||
because we are changing from reading to
|
||||
writing. */
|
||||
if (fseek (fout, 0L, SEEK_CUR) < 0)
|
||||
if (fseeko (fout, 0L, SEEK_CUR) < 0)
|
||||
{
|
||||
perror_reply (550, name);
|
||||
goto done;
|
||||
|
||||
@@ -255,7 +255,7 @@ write_behind (FILE * file, int convert)
|
||||
if (prevchar == '\r')
|
||||
{ /* if prev char was cr */
|
||||
if (c == '\n') /* if have cr,lf then just */
|
||||
fseek (file, -1, 1); /* smash lf on top of the cr */
|
||||
fseeko (file, -1, 1); /* smash lf on top of the cr */
|
||||
else if (c == '\0') /* if have cr,nul then */
|
||||
goto skipit; /* just skip over the putc */
|
||||
/* else just fall through and allow it */
|
||||
|
||||
Reference in New Issue
Block a user