mirror of
https://github.com/systemd/systemd.git
synced 2025-01-26 14:04:03 +03:00
Merge pull request #1734 from evverx/overwrite-sysemd-unit-path
core: set_unit_path overwrites SYSTEMD_UNIT_PATH
This commit is contained in:
commit
534e8f89d6
@ -2328,7 +2328,7 @@ int unit_add_two_dependencies_by_name(Unit *u, UnitDependency d, UnitDependency
|
||||
|
||||
int set_unit_path(const char *p) {
|
||||
/* This is mostly for debug purposes */
|
||||
if (setenv("SYSTEMD_UNIT_PATH", p, 0) < 0)
|
||||
if (setenv("SYSTEMD_UNIT_PATH", p, 1) < 0)
|
||||
return -errno;
|
||||
|
||||
return 0;
|
||||
|
Loading…
x
Reference in New Issue
Block a user