Subject: Re: bin/27155: Building -current fails in linking fixincludes
To: None <ks@ub.uni-mainz.de>
From: enami tsugutomo <enami@sm.sony.co.jp>
List: current-users
Date: 10/06/2004 17:48:38
Kurt Schreiner <ks@ub.uni-mainz.de> writes:

> just a "heads up" as there seems to be a problem w/ rev 1.35 of
> src/bin/sh/var.c: as stated in my pr (bin/27155) there is a problem
> w/ variable handling, especially when exporting variables to a sub-shell.
> Going back to rev 1.34 of this file solves the problems.

Try this.

enami.

Index: var.c
===================================================================
RCS file: /cvsroot/src/bin/sh/var.c,v
retrieving revision 1.35
diff -c -r1.35 var.c
*** var.c	2 Oct 2004 12:16:53 -0000	1.35
--- var.c	6 Oct 2004 08:48:05 -0000
***************
*** 590,596 ****
  			vp = find_var(name, NULL, NULL);
  			if (vp != NULL) {
  				vp->flags |= flag;
! 				return 0;
  			}
  		}
  		setvar(name, p, flag);
--- 590,596 ----
  			vp = find_var(name, NULL, NULL);
  			if (vp != NULL) {
  				vp->flags |= flag;
! 				continue;
  			}
  		}
  		setvar(name, p, flag);