summaryrefslogtreecommitdiffstats
path: root/Src
diff options
context:
space:
mode:
authorMikael Magnusson <mikachu@gmail.com>2026-05-11 23:46:38 +0200
committerMikael Magnusson <mikachu@gmail.com>2026-05-16 18:28:29 +0200
commitd8dd84dd679ac5d97f0522f0de943b944f4d272d (patch)
tree1664d51b45869cb53fd18703f8b385a86ab3edd0 /Src
parent54550: cap: fix leaks (diff)
downloadzsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.tar
zsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.tar.gz
zsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.tar.bz2
zsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.tar.lz
zsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.tar.xz
zsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.tar.zst
zsh-d8dd84dd679ac5d97f0522f0de943b944f4d272d.zip
54551: clone: minor style issue
Diffstat (limited to 'Src')
-rw-r--r--Src/Modules/clone.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/Src/Modules/clone.c b/Src/Modules/clone.c
index 4b2655505..db6d4b401 100644
--- a/Src/Modules/clone.c
+++ b/Src/Modules/clone.c
@@ -60,9 +60,9 @@ bin_clone(char *nam, char **args, UNUSED(Options ops), UNUSED(int func))
if (setsid() != mypid)
zwarnnam(nam, "failed to create new session: %e", errno);
#elif defined(TIOCNOTTY)
- if (ioctl(SHTTY, TIOCNOTTY, 0))
- zwarnnam(*args, "%e", errno);
- setpgrp(0L, mypid);
+ if (ioctl(SHTTY, TIOCNOTTY, 0))
+ zwarnnam(nam, "%e", errno);
+ setpgrp(0L, mypid);
#endif
dup2(ttyfd,0);
dup2(ttyfd,1);