From 85338bb75fa4fbabfdbefeb995bdea04efaf2db4 Mon Sep 17 00:00:00 2001 From: nicm Date: Tue, 24 Jan 2017 19:53:37 +0000 Subject: Add support for custom command aliases, this is an array option which contains items of the form "alias=command". This is consulted when an unknown command is parsed. --- pty.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'pty.c') diff --git a/pty.c b/pty.c index 05a02ef0..39794afc 100644 --- a/pty.c +++ b/pty.c @@ -45,7 +45,7 @@ pty_fork(int ptmfd, int *fd, char *name, size_t namelen, struct winsize *ws) struct ptmget ptm; pid_t pid; - if ((ioctl(ptmfd, PTMGET, &ptm) == -1)) + if (ioctl(ptmfd, PTMGET, &ptm) == -1) return (-1); strlcpy(name, ptm.sn, namelen); -- cgit