Compare commits

...

1 commit

Author SHA1 Message Date
3faa1cd209 Deleted old child path using embedded child 2023-04-08 09:06:22 +02:00
3 changed files with 4 additions and 5 deletions

View file

@ -69,6 +69,7 @@ TO_LOCAL_CLEAN+=$(PACKAGE)_$(VERSION)-1.debian.tar.xz $(PACKAGE)_$(VERSION)-1.ds
$(DEB_PREF).changes \
$(DEB_PREF).deb \
$(PACKAGE)_$(VERSION).tar.gz \
$(PKGV) \
$(PACKAGE)-$(VERSION) \
$(RPM_BUILD) \
*.rpm

View file

@ -18,8 +18,6 @@
#include <readline/readline.h>
#include <readline/history.h>
#define CHILD_EXEC_PATH "./child"
#include "logger.h"
#include "shell.h"
#include "completion.h"
@ -37,7 +35,7 @@ int main(int argc, char *argv[], char *envp[])
logger = asmsh_logger_new(ASMSH_INFO);
asmsh_logger_setup(logger);
if(asmsh_init(&sh, CHILD_EXEC_PATH))
if(asmsh_init(&sh, NULL))
{
asmsh_log_error("Unable to init shell : %s", strerror(errno));
asmsh_logger_dprint(2, logger);

View file

@ -26,7 +26,7 @@ START_TEST (test_parse_line)
"123456-654321 ---p 00000000 0:0 0 [stack]"},
{{(void*)0, (void*)0x1000,
PROT_READ | PROT_WRITE | PROT_EXEC | MAP_SHARED,
1, (13<<8)+12, 123, "[stack]"},
1, (0x13<<8)+0x12, 123, "[stack]"},
"0-01000 rwxs 00000001 13:12 123 [stack]"},
{{(void*)0x35b1800000, (void*)0x35b1820000,
PROT_READ | PROT_EXEC | MAP_PRIVATE, 0x1f000, (8<<8)+2, 135522, "/usr/lib64/ld-2.15.so"},
@ -69,7 +69,7 @@ START_TEST (test_parse_fd)
PROT_READ | PROT_WRITE | MAP_SHARED, 0, 0, 0,
"[heap]"},
{(void*)0x35b1a20000, (void*)0x35b1a21000,
PROT_READ | PROT_WRITE | MAP_PRIVATE, 0x20000, (13<<8)+12, 135522,
PROT_READ | PROT_WRITE | MAP_PRIVATE, 0x20000, (0x13<<8)+0x12, 135522,
"/usr/lib64/ld-2.15.so"},
{(void*)0x35b1a21000, (void*)0x35b1a22000,
PROT_READ | PROT_WRITE | MAP_PRIVATE, 0, 0, 0,