(deli): Diagnose invalid direction.
This commit is contained in:
parent
f38868d00e
commit
9731c24676
1 changed files with 4 additions and 1 deletions
|
@ -93,8 +93,11 @@ deli(void)
|
|||
}
|
||||
if (p && *p) {
|
||||
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;
|
||||
}
|
||||
}
|
||||
|
||||
if (!check_sect_ok(§))
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue