util: allow strappenda to take any number of args

This makes strappenda3 redundant, so we remove its usage and
definition. Add a few tests along the way for sanity.
This commit is contained in:
Dave Reisner
2014-08-13 20:41:41 -04:00
parent d06441da04
commit 8085f163c5
7 changed files with 32 additions and 28 deletions
+1 -1
View File
@@ -1061,7 +1061,7 @@ static int unit_file_load(
assert(path);
if (!isempty(root_dir))
path = strappenda3(root_dir, "/", path);
path = strappenda(root_dir, "/", path);
fd = open(path, O_RDONLY|O_CLOEXEC|O_NOCTTY|(allow_symlink ? 0 : O_NOFOLLOW));
if (fd < 0)