depot/third_party/nixpkgs/pkgs/os-specific/linux/udisks/force-path.patch
Default email ce641f4048 Project import generated by Copybara.
GitOrigin-RevId: bc5d68306b40b8522ffb69ba6cff91898c2fbbff
2021-12-06 17:07:01 +01:00

17 lines
429 B
Diff

diff --git a/src/main.c b/src/main.c
index b4dbf9e0..3171fa34 100644
--- a/src/main.c
+++ b/src/main.c
@@ -144,8 +144,7 @@ main (int argc,
g_setenv("G_MESSAGES_DEBUG", "udisks", FALSE);
}
- if (g_getenv ("PATH") == NULL)
- g_setenv ("PATH", "/usr/bin:/bin:/usr/sbin:/sbin", TRUE);
+ g_setenv ("PATH", "@path@", TRUE);
udisks_notice ("udisks daemon version %s starting", PACKAGE_VERSION);
--
2.33.1