summaryrefslogtreecommitdiffstats
path: root/meta/recipes-core/systemd/systemd/0001-Use-getenv-when-secure-versions-are-not-available.patch
blob: 37979755d03f2f0254d9a30b9cd8bc12c35970d5 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
From b8055a61b5df6b43b8d3117936587b874b0a339b Mon Sep 17 00:00:00 2001
From: Chen Qi <Qi.Chen@windriver.com>
Date: Mon, 25 Feb 2019 11:01:18 +0800
Subject: [PATCH 01/24] Use getenv when secure versions are not available

musl doesnt implement secure version, so we default
to it if configure does not detect a secure implementation

Signed-off-by: Khem Raj <raj.khem@gmail.com>

Upstream-Status: Denied

Signed-off-by: Chen Qi <Qi.Chen@windriver.com>
---
 src/basic/missing_stdlib.h | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/basic/missing_stdlib.h b/src/basic/missing_stdlib.h
index 188a8d4..c0ffe86 100644
--- a/src/basic/missing_stdlib.h
+++ b/src/basic/missing_stdlib.h
@@ -8,6 +8,6 @@
 #  if HAVE___SECURE_GETENV
 #    define secure_getenv __secure_getenv
 #  else
-#    error "neither secure_getenv nor __secure_getenv are available"
+#    define secure_getenv getenv
 #  endif
 #endif
-- 
2.7.4