Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/bin/sh Move an assignment that was using a variable out of s...
details: https://anonhg.NetBSD.org/src/rev/b21431b3d5b4
branches: trunk
changeset: 550931:b21431b3d5b4
user: jmmv <jmmv%NetBSD.org@localhost>
date: Mon Aug 25 20:08:12 2003 +0000
description:
Move an assignment that was using a variable out of scope to fix a build
problem on !NetBSD.
diffstat:
bin/sh/cd.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diffs (28 lines):
diff -r 47a8a594a663 -r b21431b3d5b4 bin/sh/cd.c
--- a/bin/sh/cd.c Mon Aug 25 19:25:09 2003 +0000
+++ b/bin/sh/cd.c Mon Aug 25 20:08:12 2003 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: cd.c,v 1.31 2003/08/07 09:05:30 agc Exp $ */
+/* $NetBSD: cd.c,v 1.32 2003/08/25 20:08:12 jmmv Exp $ */
/*-
* Copyright (c) 1991, 1993
@@ -37,7 +37,7 @@
#if 0
static char sccsid[] = "@(#)cd.c 8.2 (Berkeley) 5/4/95";
#else
-__RCSID("$NetBSD: cd.c,v 1.31 2003/08/07 09:05:30 agc Exp $");
+__RCSID("$NetBSD: cd.c,v 1.32 2003/08/25 20:08:12 jmmv Exp $");
#endif
#endif /* not lint */
@@ -412,8 +412,8 @@
error("pwd command failed");
}
p[-1] = '\0';
+ curdir = savestr(buf);
}
- curdir = savestr(buf);
INTON;
#endif
}
Home |
Main Index |
Thread Index |
Old Index