pexec

execute a program from standard input
git clone git://git.2f30.org/pexec.git
Log | Files | Refs

commit fdd8ba1013f0ad61cadd1ee565f892f2ad2df8ea
parent 524005977c48d28fcb1ab5d6f7eb5c07ca07c259
Author: sin <sin@2f30.org>
Date:   Fri, 23 Mar 2018 12:12:38 +0000

Name memfd region according to argv[0]

Diffstat:
pexec.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/pexec.c b/pexec.c @@ -104,7 +104,7 @@ main(int argc, char *argv[]) if (argc == 0) usage(); - fd = memfd_create("exec", 0); + fd = memfd_create(argv[0], 0); if (fd < 0) err(1, "memfd_create");