File 1203-Remove-unnecessary-PATHSEP.patch of Package erlang

From 0f02ab2bf0aa002f1032cb608d0261699d4035d1 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Eric=20Meadows-J=C3=B6nsson?=
 <eric.meadows.jonsson@gmail.com>
Date: Mon, 27 Jan 2025 14:46:55 +0100
Subject: [PATCH 3/6] Remove unnecessary PATHSEP

The PATH should not end with `:`.

Co-authored-by: Rin Kuryloski <rin.kuryloski@mechanical-orchard.com>
---
 erts/etc/common/erlexec.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/erts/etc/common/erlexec.c b/erts/etc/common/erlexec.c
index aecfe2cac1..02a4dca16d 100644
--- a/erts/etc/common/erlexec.c
+++ b/erts/etc/common/erlexec.c
@@ -554,7 +554,7 @@ int main(int argc, char **argv)
 
     if (s == NULL) {
         erts_snprintf(tmpStr, sizeof(tmpStr),
-            "%s" PATHSEP "%s" DIRSEP "bin" PATHSEP, bindir, rootdir);
+            "%s" PATHSEP "%s" DIRSEP "bin", bindir, rootdir);
         set_env("PATH", tmpStr);
     } else if (strstr(s, rootdir) == NULL) {
         erts_snprintf(tmpStr, sizeof(tmpStr),
-- 
2.43.0

openSUSE Build Service is sponsored by