Date: Mon, 15 May 2017 16:48:23 -0230 From: "Jonathan Anderson" <jonathan@FreeBSD.org> To: "Ian Lepore" <ian@freebsd.org> Cc: "Konstantin Belousov" <kostikbel@gmail.com>, "Alexey Dokuchaev" <danfe@FreeBSD.org>, src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org Subject: Re: svn commit: r318313 - head/libexec/rtld-elf Message-ID: <1F314B80-B5EC-4384-AAF0-1F3D477ADC3B@FreeBSD.org> In-Reply-To: <DD35C1EE-0AD1-45B6-B22D-798B5E382956@FreeBSD.org> References: <201705151848.v4FImwMW070221@repo.freebsd.org> <20170515185236.GB1637@FreeBSD.org> <20170515190030.GG1622@kib.kiev.ua> <1494875335.59865.118.camel@freebsd.org> <DD35C1EE-0AD1-45B6-B22D-798B5E382956@FreeBSD.org>
next in thread | previous in thread | raw e-mail | index | archive | help
On 15 May 2017, at 16:44, Jonathan Anderson wrote: > You can already execute "non-executable" binaries using the `exec` > shell built-in: > > ``` > $ cp /bin/sh . > $ chmod -x sh > $ exec sh > ``` Er, oops: I ought to have said, you can execute non-executable binaries by copying and marking them `+x`: ``` $ cp /bin/sh . $ chmod +x sh $ ./sh ``` (please ignore the bit about `exec`, that's from another mental thread) Jon -- Jonathan Anderson jonathan@FreeBSD.org
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?1F314B80-B5EC-4384-AAF0-1F3D477ADC3B>