summaryrefslogtreecommitdiff
path: root/bin/sh
diff options
context:
space:
mode:
authorTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-22 00:36:00 +0000
committerTheo de Raadt <deraadt@cvs.openbsd.org>1996-08-22 00:36:00 +0000
commit32bb5c8b5aaa2322996d5499d65ed3d99ab6a3ca (patch)
tree67db7859c730d4d0df8be16cfe51458e739cb9fd /bin/sh
parent09f953a174464ba8c750219cfcf9ecdc344eba0d (diff)
__OpenBSD__
Diffstat (limited to 'bin/sh')
-rw-r--r--bin/sh/cd.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/bin/sh/cd.c b/bin/sh/cd.c
index b00266ad4a7..140b32392a8 100644
--- a/bin/sh/cd.c
+++ b/bin/sh/cd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: cd.c,v 1.6 1996/06/23 14:21:09 deraadt Exp $ */
+/* $OpenBSD: cd.c,v 1.7 1996/08/22 00:35:24 deraadt Exp $ */
/* $NetBSD: cd.c,v 1.15 1996/03/01 01:58:58 jtc Exp $ */
/*-
@@ -41,7 +41,7 @@
#if 0
static char sccsid[] = "@(#)cd.c 8.2 (Berkeley) 5/4/95";
#else
-static char rcsid[] = "$OpenBSD: cd.c,v 1.6 1996/06/23 14:21:09 deraadt Exp $";
+static char rcsid[] = "$OpenBSD: cd.c,v 1.7 1996/08/22 00:35:24 deraadt Exp $";
#endif
#endif /* not lint */
@@ -257,7 +257,7 @@ getpwd()
* c implementation of getcwd, that does not open a pipe to
* /bin/pwd.
*/
-#if defined(__NetBSD__) || defined(__svr4__)
+#if defined(__NetBSD__) || defined(__OpenBSD__) || defined(__svr4__)
if (getcwd(buf, sizeof(buf)) == NULL)
error("getcwd() failed");
curdir = savestr(buf);