Module Name: src
Committed By: christos
Date: Fri Oct 18 20:41:58 UTC 2013
Modified Files:
src/usr.bin/rdist: docmd.c
Log Message:
fix clobbered variable
To generate a diff of this commit:
cvs rdiff -u -r1.28 -r1.29 src/usr.bin/rdist/docmd.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/rdist/docmd.c
diff -u src/usr.bin/rdist/docmd.c:1.28 src/usr.bin/rdist/docmd.c:1.29
--- src/usr.bin/rdist/docmd.c:1.28 Mon Apr 13 00:35:36 2009
+++ src/usr.bin/rdist/docmd.c Fri Oct 18 16:41:58 2013
@@ -1,4 +1,4 @@
-/* $NetBSD: docmd.c,v 1.28 2009/04/13 04:35:36 lukem Exp $ */
+/* $NetBSD: docmd.c,v 1.29 2013/10/18 20:41:58 christos Exp $ */
/*
* Copyright (c) 1983, 1993
@@ -34,7 +34,7 @@
#if 0
static char sccsid[] = "@(#)docmd.c 8.1 (Berkeley) 6/9/93";
#else
-__RCSID("$NetBSD: docmd.c,v 1.28 2009/04/13 04:35:36 lukem Exp $");
+__RCSID("$NetBSD: docmd.c,v 1.29 2013/10/18 20:41:58 christos Exp $");
#endif
#endif /* not lint */
@@ -123,7 +123,7 @@ docmds(char **dhosts, int argc, char **a
* Process commands for sending files to other machines.
*/
static void
-doarrow(char **filev, struct namelist *files, char *rhost, struct subcmd *cmds)
+doarrow(char **filev, struct namelist *xfiles, char *rhost, struct subcmd *cmds)
{
struct namelist *f;
struct subcmd *sc;
@@ -131,6 +131,7 @@ doarrow(char **filev, struct namelist *f
int n;
int volatile ddir;
int volatile opts;
+ struct namelist * volatile files = xfiles;
opts = options;
if (debug)