Module Name: src
Committed By: christos
Date: Sun Jan 15 20:43:24 UTC 2012
Modified Files:
src/usr.bin/ftp: cmds.c
Log Message:
fix previous; use append instead of write.
To generate a diff of this commit:
cvs rdiff -u -r1.133 -r1.134 src/usr.bin/ftp/cmds.c
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/usr.bin/ftp/cmds.c
diff -u src/usr.bin/ftp/cmds.c:1.133 src/usr.bin/ftp/cmds.c:1.134
--- src/usr.bin/ftp/cmds.c:1.133 Sat Jan 14 22:58:28 2012
+++ src/usr.bin/ftp/cmds.c Sun Jan 15 15:43:24 2012
@@ -1,4 +1,4 @@
-/* $NetBSD: cmds.c,v 1.133 2012/01/15 03:58:28 christos Exp $ */
+/* $NetBSD: cmds.c,v 1.134 2012/01/15 20:43:24 christos Exp $ */
/*-
* Copyright (c) 1996-2009 The NetBSD Foundation, Inc.
@@ -96,7 +96,7 @@
#if 0
static char sccsid[] = "@(#)cmds.c 8.6 (Berkeley) 10/9/94";
#else
-__RCSID("$NetBSD: cmds.c,v 1.133 2012/01/15 03:58:28 christos Exp $");
+__RCSID("$NetBSD: cmds.c,v 1.134 2012/01/15 20:43:24 christos Exp $");
#endif
#endif /* not lint */
@@ -557,14 +557,14 @@ void
reget(int argc, char *argv[])
{
- (void)getit(argc, argv, 1, restart_point ? "r+" : "w" );
+ (void)getit(argc, argv, 1, restart_point ? "r+" : "a");
}
void
get(int argc, char *argv[])
{
- (void)getit(argc, argv, 0, restart_point ? "r+" : "w" );
+ (void)getit(argc, argv, 0, restart_point ? "r+" : "w");
}
/*