[Bug 263999] Regression: truncate(2) succeeds even for text files being executed

From: <bugzilla-noreply_at_freebsd.org>
Date: Sun, 15 May 2022 22:11:49 UTC
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=263999

Alan Somers <asomers@FreeBSD.org> changed:

           What    |Removed                     |Added
----------------------------------------------------------------------------
                 CC|                            |kib-bugs@FreeBSD.org,
                   |                            |mjg@FreeBSD.org
           See Also|                            |https://reviews.freebsd.org
                   |                            |/D33128

--- Comment #1 from Alan Somers <asomers@FreeBSD.org> ---
I determined that the bug was introduced by revision
e511bd1406fa35301e770aad05d1bfdc345c8639, review D33128 .  Mateusz, could you
please take it from here?

Improved steps to reproduce:
* sudo pkg install -y autoconf automake perl5 git
* git clone https://github.com/pjd/pjdfstest
* cd pjdfstest
* autoreconf -ifs && ./configure && make
* cd ..
* prove -rv pjdfstest/tests/truncate/11.t

-- 
You are receiving this mail because:
You are the assignee for the bug.