summaryrefslogtreecommitdiff
path: root/bin
diff options
context:
space:
mode:
authorTodd C. Miller <millert@cvs.openbsd.org>1997-09-12 04:38:06 +0000
committerTodd C. Miller <millert@cvs.openbsd.org>1997-09-12 04:38:06 +0000
commitaa3023ab37fbabfe1db444325fc46098d6d44d58 (patch)
tree50acf206050be432c6c3a1772cb9ced2f2b894a2 /bin
parent7186cb669c627520462256325a3c6f8693991d67 (diff)
Avoid longjmp/vfork clobbering.
Diffstat (limited to 'bin')
-rw-r--r--bin/ksh/exec.c6
-rw-r--r--bin/pdksh/exec.c6
2 files changed, 10 insertions, 2 deletions
diff --git a/bin/ksh/exec.c b/bin/ksh/exec.c
index 6d59366b9a8..7c98d956239 100644
--- a/bin/ksh/exec.c
+++ b/bin/ksh/exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.c,v 1.9 1997/06/19 13:58:41 kstailey Exp $ */
+/* $OpenBSD: exec.c,v 1.10 1997/09/12 04:38:05 millert Exp $ */
/*
* execute command tree
@@ -458,6 +458,10 @@ comexec(t, tp, ap, flags)
int keepasn_ok;
int fcflags = FC_BI|FC_FUNC|FC_PATH;
+#ifdef __GNUC__
+ (void)&rv;
+#endif
+
/* snag the last argument for $_ XXX not the same as at&t ksh,
* which only seems to set $_ after a newline (but not in
* functions/dot scripts, but in interactive and scipt) -
diff --git a/bin/pdksh/exec.c b/bin/pdksh/exec.c
index 6d59366b9a8..7c98d956239 100644
--- a/bin/pdksh/exec.c
+++ b/bin/pdksh/exec.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: exec.c,v 1.9 1997/06/19 13:58:41 kstailey Exp $ */
+/* $OpenBSD: exec.c,v 1.10 1997/09/12 04:38:05 millert Exp $ */
/*
* execute command tree
@@ -458,6 +458,10 @@ comexec(t, tp, ap, flags)
int keepasn_ok;
int fcflags = FC_BI|FC_FUNC|FC_PATH;
+#ifdef __GNUC__
+ (void)&rv;
+#endif
+
/* snag the last argument for $_ XXX not the same as at&t ksh,
* which only seems to set $_ after a newline (but not in
* functions/dot scripts, but in interactive and scipt) -