mirror of
https://github.com/troglobit/finit.git
synced 2026-10-15 10:29:35 +00:00
initctl: return correct path if -c is given
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
aa998583a7
commit
0d52583624
1 file changed
+2
-2
+2
-2
@@ -149,8 +149,8 @@ static char *conf(char *path, size_t len, char *name, int creat)
|
||||
if (!fisdir(path)) {
|
||||
if (creat && mkdir(path, 0755) && errno != EEXIST)
|
||||
return NULL;
|
||||
|
||||
paste(path, len, FINIT_RCSD, name);
|
||||
else
|
||||
paste(path, len, FINIT_RCSD, name);
|
||||
} else
|
||||
strlcat(path, name, len);
|
||||
|
||||
|
||||
Reference in new issue
Block a user