From 4e3e8703c9bf5811ff2f20bce4c7489bc9a293bf Mon Sep 17 00:00:00 2001 From: Po Lu Date: Mon, 1 Jul 2024 22:55:03 +0800 Subject: [PATCH] * exec/exec.c (exec_0): Restore erroneously deleted statement. (cherry picked from commit e087d3009bf564446367a1465957d9ea7b699f01) --- exec/exec.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/exec/exec.c b/exec/exec.c index fad345c532c..775a8b06b96 100644 --- a/exec/exec.c +++ b/exec/exec.c @@ -974,6 +974,9 @@ exec_0 (char *name, struct exec_tracee *tracee, rewrite = buffer1 + link_size; remaining = buffer1 + sizeof buffer1 - rewrite - 1; memcpy (rewrite, name, strnlen (name, remaining)); + + /* Replace name with buffer1. */ + strcpy (name, buffer1); } } -- 2.39.2