core: set_unit_path overwrites SYSTEMD_UNIT_PATH

This commit is contained in:
Evgeny Vereshchagin
2015-10-31 14:14:37 +03:00
parent ed574a6834
commit cbe46ead79
+1 -1
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;