mirror of
https://github.com/troglobit/finit.git
synced 2026-11-23 20:11:44 +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 (!fisdir(path)) {
|
||||||
if (creat && mkdir(path, 0755) && errno != EEXIST)
|
if (creat && mkdir(path, 0755) && errno != EEXIST)
|
||||||
return NULL;
|
return NULL;
|
||||||
|
else
|
||||||
paste(path, len, FINIT_RCSD, name);
|
paste(path, len, FINIT_RCSD, name);
|
||||||
} else
|
} else
|
||||||
strlcat(path, name, len);
|
strlcat(path, name, len);
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user