diff --git a/libc/calls/fcntl.c b/libc/calls/fcntl.c index d925a46ad..b53ce4014 100644 --- a/libc/calls/fcntl.c +++ b/libc/calls/fcntl.c @@ -28,7 +28,6 @@ #include "libc/intrin/strace.internal.h" #include "libc/intrin/weaken.h" #include "libc/runtime/zipos.internal.h" -#include "libc/str/str.h" #include "libc/sysv/consts/f.h" #include "libc/sysv/errfuns.h" @@ -126,10 +125,6 @@ int fcntl(int fd, int cmd, ...) { END_CANCELATION_POINT; } else { rc = sys_fcntl(fd, cmd, arg, __sys_fcntl); - if (rc != -1 && (cmd == F_DUPFD || cmd == F_DUPFD_CLOEXEC) && - __isfdkind(rc, kFdZip)) { - _weaken(__zipos_postdup)(fd, rc); - } } } else { rc = sys_fcntl_nt(fd, cmd, arg);