Index: sys/compat/linux/linux_fork.c =================================================================== --- sys/compat/linux/linux_fork.c +++ sys/compat/linux/linux_fork.c @@ -150,10 +150,9 @@ /* * XXX: In Linux, sharing of fs info (chroot/cwd/umask) * and open files is independent. In FreeBSD, its in one - * structure but in reality it does not cause any problems - * because both of these flags are usually set together. + * structure. */ - if (!(args->flags & (LINUX_CLONE_FILES | LINUX_CLONE_FS))) + if (!(args->flags & LINUX_CLONE_FILES)) ff |= RFFDG; if (args->flags & LINUX_CLONE_PARENT_SETTID)