mirror of
https://github.com/troglobit/finit.git
synced 2026-12-04 21:58:19 +00:00
initctl: if edit cannot find the file, list available ones
Signed-off-by: Joachim Wiberg <troglobit@gmail.com>
This commit is contained in:
1 parent
0d52583624
commit
510bd1ac0b
1 file changed
+1
-1
+1
-1
@@ -260,7 +260,7 @@ static int do_edit(char *arg, int creat)
|
|||||||
if (!fexist(fn)) {
|
if (!fexist(fn)) {
|
||||||
if (!creat) {
|
if (!creat) {
|
||||||
warnx("Cannot find %s, use create command, or select one of:", arg);
|
warnx("Cannot find %s, use create command, or select one of:", arg);
|
||||||
return serv_list(NULL);
|
return serv_list("available");
|
||||||
}
|
}
|
||||||
|
|
||||||
/* XXX: fill with template/commented-out examples */
|
/* XXX: fill with template/commented-out examples */
|
||||||
|
|||||||
Reference in new issue
Block a user