mirror of
https://github.com/clearlinux/graphene.git
synced 2026-10-04 16:08:22 +00:00
bugfix: unnormalized manifest paths cause regression test failed
This commit is contained in:
@@ -291,7 +291,7 @@ void pal_bsd_main (void * args)
|
||||
file->__in.flags |= RFD(0)|WFD(0)|WRITEABLE(0);
|
||||
file->file.fd = fd;
|
||||
char * path = (void *) file + HANDLE_SIZE(file);
|
||||
memcpy(path, argv[0], len + 1);
|
||||
get_norm_path(argv[0], path, 0, len + 1);
|
||||
file->file.realpath = path;
|
||||
|
||||
if (!check_elf_object(file)) {
|
||||
|
||||
@@ -263,7 +263,7 @@ void pal_linux_main (void * args)
|
||||
HANDLE_HDR(file)->flags |= RFD(0)|WFD(0)|WRITEABLE(0);
|
||||
file->file.fd = fd;
|
||||
char * path = (void *) file + HANDLE_SIZE(file);
|
||||
memcpy(path, argv[0], len + 1);
|
||||
get_norm_path(argv[0], path, 0, len + 1);
|
||||
file->file.realpath = path;
|
||||
|
||||
if (!check_elf_object(file)) {
|
||||
|
||||
Reference in New Issue
Block a user