(deli): Diagnose invalid direction.
This commit is contained in:
parent
f38868d00e
commit
9731c24676
1 changed files with 4 additions and 1 deletions
|
@ -93,9 +93,12 @@ deli(void)
|
||||||
}
|
}
|
||||||
if (p && *p) {
|
if (p && *p) {
|
||||||
dir = chkdir(*p, DIR_STOP, DIR_LAST);
|
dir = chkdir(*p, DIR_STOP, DIR_LAST);
|
||||||
if (dir < 0)
|
if (dir < 0) {
|
||||||
|
pr("'%c' is not a valid direction...\n", *p);
|
||||||
|
direrr(NULL, NULL, NULL);
|
||||||
return RET_SYN;
|
return RET_SYN;
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (!check_sect_ok(§))
|
if (!check_sect_ok(§))
|
||||||
continue;
|
continue;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue