From 65856a0deb7200b78f858ba7dc66077f3469e924 Mon Sep 17 00:00:00 2001
From: Karel Zak <kzak@redhat.com>
Date: Wed, 2 Mar 2022 10:00:46 +0100
Subject: [PATCH] scriptlive: fix argv[0] for execlp()

Signed-off-by: Karel Zak <kzak@redhat.com>
---
 term-utils/scriptlive.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/term-utils/scriptlive.c b/term-utils/scriptlive.c
index 37f092c1ff..d81712d36f 100644
--- a/term-utils/scriptlive.c
+++ b/term-utils/scriptlive.c
@@ -321,9 +321,9 @@ main(int argc, char *argv[])
 				execl(shell, shname, "-i", (char *)NULL);
 		} else {
 			if (command)
-				execlp(shname, "-c", command, (char *)NULL);
+				execlp(shname, shname, "-c", command, (char *)NULL);
 			else
-				execlp(shname, "-i", (char *)NULL);
+				execlp(shname, shname, "-i", (char *)NULL);
 		}
 		err(EXIT_FAILURE, "failed to execute %s", shell);
 		break;
