From 8399fc7fd51c4ca99fe06cc77a913878c5ffe1b5 Mon Sep 17 00:00:00 2001 From: henriquebritoM Date: Thu, 19 Feb 2026 12:53:46 -0300 Subject: [PATCH] Fix indentation in linux_open_ctty --- sys/compat/linux/common/linux_file.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/sys/compat/linux/common/linux_file.c b/sys/compat/linux/common/linux_file.c index 4c3ead76b6eb0..7207c719a1ae4 100644 --- a/sys/compat/linux/common/linux_file.c +++ b/sys/compat/linux/common/linux_file.c @@ -202,19 +202,19 @@ linux_open_ctty(struct lwp *l, int flags, int fd) * terminal yet, and the O_NOCTTY flag is not set, try to make * this the controlling terminal. */ - if (!(flags & O_NOCTTY) && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) { - file_t *fp; + if (!(flags & O_NOCTTY) && SESS_LEADER(p) && !(p->p_lflag & PL_CONTROLT)) { + file_t *fp; fp = fd_getfile(fd); - /* ignore any error, just give it a try */ - if (fp != NULL) { + /* ignore any error, just give it a try */ + if (fp != NULL) { if (fp->f_type == DTYPE_VNODE) { (fp->f_ops->fo_ioctl) (fp, TIOCSCTTY, NULL); } fd_putfile(fd); } - } + } } /*