Module Name:    src
Committed By:   gson
Date:           Sat Oct  2 09:24:16 UTC 2010

Modified Files:
        src/usr.bin/rsh: rsh.c

Log Message:
putenv() no longer accepts a const string


To generate a diff of this commit:
cvs rdiff -u -r1.31 -r1.32 src/usr.bin/rsh/rsh.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/rsh/rsh.c
diff -u src/usr.bin/rsh/rsh.c:1.31 src/usr.bin/rsh/rsh.c:1.32
--- src/usr.bin/rsh/rsh.c:1.31	Sun Jan 18 00:42:35 2009
+++ src/usr.bin/rsh/rsh.c	Sat Oct  2 09:24:16 2010
@@ -1,4 +1,4 @@
-/*	$NetBSD: rsh.c,v 1.31 2009/01/18 00:42:35 lukem Exp $	*/
+/*	$NetBSD: rsh.c,v 1.32 2010/10/02 09:24:16 gson Exp $	*/
 
 /*-
  * Copyright (c) 1983, 1990, 1993, 1994
@@ -39,7 +39,7 @@
 #if 0
 static char sccsid[] = "@(#)rsh.c	8.4 (Berkeley) 4/29/95";
 #else
-__RCSID("$NetBSD: rsh.c,v 1.31 2009/01/18 00:42:35 lukem Exp $");
+__RCSID("$NetBSD: rsh.c,v 1.32 2010/10/02 09:24:16 gson Exp $");
 #endif
 #endif /* not lint */
 
@@ -135,7 +135,7 @@
 	if ((loop = getenv("RCMD_LOOP")) && strcmp(loop, "YES") == 0)
 		warnx("rcmd appears to be looping!");
 
-	putenv("RCMD_LOOP=YES");
+	setenv("RCMD_LOOP", "YES", 1);
 
 #  define	OPTIONS	"468KLdel:np:u:w"
 

Reply via email to