Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/netbsd-1-6]: src/bin/rcp Pull up revision 1.30 (requested by ragge in ti...



details:   https://anonhg.NetBSD.org/src/rev/14a5397cea28
branches:  netbsd-1-6
changeset: 529470:14a5397cea28
user:      tron <tron%NetBSD.org@localhost>
date:      Fri Nov 22 23:03:31 2002 +0000

description:
Pull up revision 1.30 (requested by ragge in ticket #1008):
It's a very bad habit to store file sizes in int's, so change it to off_t
instead. Obviously noone has tried to rcp files larger than 2GB.

diffstat:

 bin/rcp/rcp.c |  7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diffs (30 lines):

diff -r 3c4a1ac67617 -r 14a5397cea28 bin/rcp/rcp.c
--- a/bin/rcp/rcp.c     Fri Nov 22 22:42:06 2002 +0000
+++ b/bin/rcp/rcp.c     Fri Nov 22 23:03:31 2002 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: rcp.c,v 1.28 2001/09/24 13:22:25 wiz Exp $     */
+/*     $NetBSD: rcp.c,v 1.28.2.1 2002/11/22 23:03:31 tron Exp $        */
 
 /*
  * Copyright (c) 1983, 1990, 1992, 1993
@@ -43,7 +43,7 @@
 #if 0
 static char sccsid[] = "@(#)rcp.c      8.2 (Berkeley) 4/2/94";
 #else
-__RCSID("$NetBSD: rcp.c,v 1.28 2001/09/24 13:22:25 wiz Exp $");
+__RCSID("$NetBSD: rcp.c,v 1.28.2.1 2002/11/22 23:03:31 tron Exp $");
 #endif
 #endif /* not lint */
 
@@ -547,9 +547,10 @@
        BUF *bp;
        off_t i, j;
        int amt, count, exists, first, mask, mode, ofd, omode;
-       int setimes, size, targisdir;
+       int setimes, targisdir;
        int wrerrno = 0;        /* pacify gcc */
        char ch, *cp, *np, *targ, *why, *vect[1], buf[BUFSIZ];
+       off_t size;
 
 #define        atime   tv[0]
 #define        mtime   tv[1]



Home | Main Index | Thread Index | Old Index