2022-06-30 09:54:47 +00:00
|
|
|
From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
|
2020-03-07 22:47:22 +00:00
|
|
|
From: Florian Klink <flokli@flokli.de>
|
|
|
|
Date: Sun, 8 Mar 2020 01:05:54 +0100
|
2022-06-30 09:54:47 +00:00
|
|
|
Subject: [PATCH] path-util.h: add placeholder for DEFAULT_PATH_NORMAL
|
2020-03-07 22:47:22 +00:00
|
|
|
|
|
|
|
This will be the $PATH used to lookup ExecStart= etc. options, which
|
|
|
|
systemd itself uses extensively.
|
|
|
|
---
|
|
|
|
src/basic/path-util.h | 6 +++---
|
|
|
|
1 file changed, 3 insertions(+), 3 deletions(-)
|
|
|
|
|
|
|
|
diff --git a/src/basic/path-util.h b/src/basic/path-util.h
|
2023-11-19 01:35:57 +00:00
|
|
|
index 6d943e967f..d4380aa7e3 100644
|
2020-03-07 22:47:22 +00:00
|
|
|
--- a/src/basic/path-util.h
|
|
|
|
+++ b/src/basic/path-util.h
|
2023-11-19 01:35:57 +00:00
|
|
|
@@ -25,9 +25,9 @@
|
2020-03-07 22:47:22 +00:00
|
|
|
# define PATH_SBIN_BIN_NULSTR(x) PATH_NORMAL_SBIN_BIN_NULSTR(x)
|
|
|
|
#endif
|
|
|
|
|
2023-11-19 01:35:57 +00:00
|
|
|
-#define DEFAULT_PATH PATH_SBIN_BIN("/usr/local/") ":" PATH_SBIN_BIN("/usr/")
|
|
|
|
-#define DEFAULT_PATH_NULSTR PATH_SBIN_BIN_NULSTR("/usr/local/") PATH_SBIN_BIN_NULSTR("/usr/")
|
2020-03-07 22:47:22 +00:00
|
|
|
-#define DEFAULT_PATH_COMPAT PATH_SPLIT_SBIN_BIN("/usr/local/") ":" PATH_SPLIT_SBIN_BIN("/usr/") ":" PATH_SPLIT_SBIN_BIN("/")
|
2023-11-19 01:35:57 +00:00
|
|
|
+#define DEFAULT_PATH "@defaultPathNormal@"
|
|
|
|
+#define DEFAULT_PATH_NULSTR "@defaultPathNormal@\0"
|
|
|
|
+#define DEFAULT_PATH_COMPAT DEFAULT_PATH
|
2020-03-07 22:47:22 +00:00
|
|
|
|
2023-11-19 01:35:57 +00:00
|
|
|
#ifndef DEFAULT_USER_PATH
|
|
|
|
# define DEFAULT_USER_PATH DEFAULT_PATH
|