summaryrefslogtreecommitdiffstats
path: root/usr.bin/doscmd
diff options
context:
space:
mode:
authorjhay <jhay@FreeBSD.org>1999-11-08 17:28:46 +0000
committerjhay <jhay@FreeBSD.org>1999-11-08 17:28:46 +0000
commit0b538034b3e67add0b95537d77d38791f8ef2491 (patch)
tree66fc9402ad71532ebe8eee0f169dd6f30e67485f /usr.bin/doscmd
parentaf24dd01707ec677efe444a8c461dbf2ca3b3b0b (diff)
downloadFreeBSD-src-0b538034b3e67add0b95537d77d38791f8ef2491.zip
FreeBSD-src-0b538034b3e67add0b95537d77d38791f8ef2491.tar.gz
Make sigreturn() work properly by zeroing mc_onstack like Bruce suggested.
Restore dos_makepath() functionality to pre r1.5 days.
Diffstat (limited to 'usr.bin/doscmd')
-rw-r--r--usr.bin/doscmd/cwd.c4
-rw-r--r--usr.bin/doscmd/doscmd.c1
2 files changed, 3 insertions, 2 deletions
diff --git a/usr.bin/doscmd/cwd.c b/usr.bin/doscmd/cwd.c
index a90c2bb..ef5635f 100644
--- a/usr.bin/doscmd/cwd.c
+++ b/usr.bin/doscmd/cwd.c
@@ -198,7 +198,7 @@ dos_makepath(u_char *where, u_char *newpath)
u_char *np;
Path_t *d;
u_char tmppath[1024];
- u_char snewpath = newpath;
+ u_char *snewpath = newpath;
if (where[0] != '\0' && where[1] == ':') {
drive = drlton(*where);
@@ -253,7 +253,7 @@ dos_makepath(u_char *where, u_char *newpath)
} else {
if (np[-1] != '\\')
*np++ = '\\';
- while (*np = *dir++ && np - snewpath < 1023)
+ while ((*np = *dir++) && np - snewpath < 1023)
++np;
}
}
diff --git a/usr.bin/doscmd/doscmd.c b/usr.bin/doscmd/doscmd.c
index 4340731..e8b3482 100644
--- a/usr.bin/doscmd/doscmd.c
+++ b/usr.bin/doscmd/doscmd.c
@@ -258,6 +258,7 @@ main(int argc, char **argv)
sigemptyset(&uc.uc_sigmask);
sigaltstack(NULL, &uc.uc_stack);
+ uc.uc_mcontext.mc_onstack = 0;
if (tmode)
tracetrap(REGS);
OpenPOWER on IntegriCloud