mirror of
https://github.com/hermitcore/libhermit.git
synced 2025-03-09 00:00:03 +01:00
fixed two smaller bugs in binfmt_misc based loader
This commit is contained in:
parent
a9381b2896
commit
f5a4228cbd
1 changed files with 7 additions and 2 deletions
|
@ -42,7 +42,7 @@
|
|||
#include <linux/tcp.h>
|
||||
|
||||
#define MAX_PATH 255
|
||||
#define INADDR(a, b, c, d) (struct in_addr) { .s_addr = ((((((d) << 8) | (c)) << 8) | (b)) << (8)) | a }
|
||||
#define INADDR(a, b, c, d) (struct in_addr) { .s_addr = ((((((d) << 8) | (c)) << 8) | (b)) << 8) | (a) }
|
||||
|
||||
#define HERMIT_PORT 0x494E
|
||||
#define HERMIT_IP(isle) INADDR(192, 168, 28, isle + 2)
|
||||
|
@ -546,7 +546,12 @@ retry:
|
|||
if (ret < 0)
|
||||
goto out;
|
||||
|
||||
// froward program arguments to HermitCore
|
||||
// forward program arguments to HermitCore
|
||||
// argv[0] is path of this proxy so we strip it
|
||||
|
||||
argv++;
|
||||
argc--;
|
||||
|
||||
ret = write(s, &argc, sizeof(argc));
|
||||
if (ret < 0)
|
||||
goto out;
|
||||
|
|
Loading…
Add table
Reference in a new issue