Blame 0001-core-dbus-execute-use-correct-char-for-representing-.patch
|
Adam Williamson |
1f94b5 |
From af87bdc6bc0d5b50af87ffd3b5cbd3e7c472dd42 Mon Sep 17 00:00:00 2001
|
|
Adam Williamson |
1f94b5 |
From: Mike Yuan <me@yhndnzj.com>
|
|
Adam Williamson |
1f94b5 |
Date: Sun, 26 May 2024 00:49:09 +0800
|
|
Adam Williamson |
1f94b5 |
Subject: [PATCH 1/2] core/dbus-execute: use correct char for representing
|
|
Adam Williamson |
1f94b5 |
WorkingDirectory=home
|
|
Adam Williamson |
1f94b5 |
|
|
Adam Williamson |
1f94b5 |
---
|
|
Adam Williamson |
1f94b5 |
src/core/dbus-execute.c | 2 +-
|
|
Adam Williamson |
1f94b5 |
1 file changed, 1 insertion(+), 1 deletion(-)
|
|
Adam Williamson |
1f94b5 |
|
|
Adam Williamson |
1f94b5 |
diff --git a/src/core/dbus-execute.c b/src/core/dbus-execute.c
|
|
Adam Williamson |
1f94b5 |
index e907aa67af..e55fb6ee16 100644
|
|
Adam Williamson |
1f94b5 |
--- a/src/core/dbus-execute.c
|
|
Adam Williamson |
1f94b5 |
+++ b/src/core/dbus-execute.c
|
|
Adam Williamson |
1f94b5 |
@@ -2755,7 +2755,7 @@ int bus_exec_context_set_transient_property(
|
|
Adam Williamson |
1f94b5 |
c->working_directory_home = is_home;
|
|
Adam Williamson |
1f94b5 |
c->working_directory_missing_ok = missing_ok;
|
|
Adam Williamson |
1f94b5 |
|
|
Adam Williamson |
1f94b5 |
- unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "WorkingDirectory=%s%s", missing_ok ? "-" : "", c->working_directory_home ? "+" : ASSERT_PTR(c->working_directory));
|
|
Adam Williamson |
1f94b5 |
+ unit_write_settingf(u, flags|UNIT_ESCAPE_SPECIFIERS, name, "WorkingDirectory=%s%s", missing_ok ? "-" : "", c->working_directory_home ? "~" : ASSERT_PTR(c->working_directory));
|
|
Adam Williamson |
1f94b5 |
}
|
|
Adam Williamson |
1f94b5 |
|
|
Adam Williamson |
1f94b5 |
return 1;
|
|
Adam Williamson |
1f94b5 |
--
|
|
Adam Williamson |
1f94b5 |
2.45.1
|
|
Adam Williamson |
1f94b5 |
|