mirror of
https://github.com/jart/cosmopolitan.git
synced 2025-02-26 15:59:04 +00:00
Fix silly execve() regression
This commit is contained in:
parent
4631d34d0d
commit
af8236264e
2 changed files with 5 additions and 3 deletions
|
@ -501,6 +501,8 @@ textwindows int FlushConsoleInputBytes(int64_t handle) {
|
||||||
if (FlushConsoleInputBuffer(handle)) {
|
if (FlushConsoleInputBuffer(handle)) {
|
||||||
dll_make_first(&__keystroke.free, __keystroke.list);
|
dll_make_first(&__keystroke.free, __keystroke.list);
|
||||||
__keystroke.list = 0;
|
__keystroke.list = 0;
|
||||||
|
dll_make_first(&__keystroke.free, __keystroke.line);
|
||||||
|
__keystroke.line = 0;
|
||||||
rc = 0;
|
rc = 0;
|
||||||
} else {
|
} else {
|
||||||
rc = __winerr();
|
rc = __winerr();
|
||||||
|
|
|
@ -22,7 +22,6 @@
|
||||||
#include "libc/calls/blocksigs.internal.h"
|
#include "libc/calls/blocksigs.internal.h"
|
||||||
#include "libc/calls/calls.h"
|
#include "libc/calls/calls.h"
|
||||||
#include "libc/calls/cp.internal.h"
|
#include "libc/calls/cp.internal.h"
|
||||||
#include "libc/proc/execve.internal.h"
|
|
||||||
#include "libc/calls/syscall-sysv.internal.h"
|
#include "libc/calls/syscall-sysv.internal.h"
|
||||||
#include "libc/cosmo.h"
|
#include "libc/cosmo.h"
|
||||||
#include "libc/dce.h"
|
#include "libc/dce.h"
|
||||||
|
@ -35,6 +34,7 @@
|
||||||
#include "libc/limits.h"
|
#include "libc/limits.h"
|
||||||
#include "libc/mem/alloca.h"
|
#include "libc/mem/alloca.h"
|
||||||
#include "libc/paths.h"
|
#include "libc/paths.h"
|
||||||
|
#include "libc/proc/execve.internal.h"
|
||||||
#include "libc/runtime/runtime.h"
|
#include "libc/runtime/runtime.h"
|
||||||
#include "libc/runtime/stack.h"
|
#include "libc/runtime/stack.h"
|
||||||
#include "libc/str/str.h"
|
#include "libc/str/str.h"
|
||||||
|
@ -53,8 +53,8 @@ static struct {
|
||||||
const char *tmpdir;
|
const char *tmpdir;
|
||||||
} g_execve;
|
} g_execve;
|
||||||
|
|
||||||
static bool IsApeFile(const char *path) {
|
bool IsApeFile(const char *path) {
|
||||||
if (!endswith(path, ".com")) {
|
if (endswith(path, ".com")) {
|
||||||
return true;
|
return true;
|
||||||
} else {
|
} else {
|
||||||
bool res = false;
|
bool res = false;
|
||||||
|
|
Loading…
Add table
Reference in a new issue