Date: Wed, 03 Nov 2021 10:40:42 +0000 From: bugzilla-noreply@freebsd.org To: bugs@FreeBSD.org Subject: [Bug 259625] fexecve interacts incorrectly with interpreters Message-ID: <bug-259625-227-JQC2VfkXn2@https.bugs.freebsd.org/bugzilla/> In-Reply-To: <bug-259625-227@https.bugs.freebsd.org/bugzilla/> References: <bug-259625-227@https.bugs.freebsd.org/bugzilla/>
next in thread | previous in thread | raw e-mail | index | archive | help
https://bugs.freebsd.org/bugzilla/show_bug.cgi?id=3D259625 Drew DeVault <sir@cmpwn.com> changed: What |Removed |Added ---------------------------------------------------------------------------- Attachment #229240|text/x-log |text/plain mime type| | --- Comment #2 from Drew DeVault <sir@cmpwn.com> --- Created attachment 229240 --> https://bugs.freebsd.org/bugzilla/attachment.cgi?id=3D229240&action= =3Dedit truss log reproducing the error (In reply to Konstantin Belousov from comment #1) I attached my own truss log. The only difference I see is the expected one: openat fails. I used truss -f ./a.out 2>log to obtain this file, which shows the two pids= in the output. I noticed these are missing from yours: how did you obtain your truss log? Note that simply running ./test.sh works fine as expected. Additional notes: Updating the interpreter to #!/bin/ls -l gives the following: cr-xr-xr-x 1 root wheel 0x6 Nov 3 11:34 /dev/fd/3 So, the file (1) exists, and (2) is readable, so the EACCESS doesn't make sense. Using #!/bin/cat gives the same error as #!/bin/sh. --=20 You are receiving this mail because: You are the assignee for the bug.=
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?bug-259625-227-JQC2VfkXn2>