Merge pull request #1734 from evverx/overwrite-sysemd-unit-path

core: set_unit_path overwrites SYSTEMD_UNIT_PATH
This commit is contained in:
Ronny Chevalier 2015-10-31 17:22:20 +01:00
commit 534e8f89d6
1 changed files with 1 additions and 1 deletions

View File

@ -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;