From: Koen Kooi <k.kooi@student.utwente.nl>
To: openembedded-devel@openembedded.org
Subject: Re: RFC: [PATCH] /etc/profile: stricter root PATH - require absolute pathname for bins in cwd
Date: Mon, 22 Jun 2009 20:31:58 +0200 [thread overview]
Message-ID: <h1oimu$5gd$2@ger.gmane.org> (raw)
In-Reply-To: <1245692685-21173-1-git-send-email-denis@denix.org>
On 22-06-09 19:44, Denys Dmytriyenko wrote:
> Having current directory (either '.' or empty string) in PATH is considered
> dangerous for root.
>
> Signed-off-by: Denys Dmytriyenko<denis@denix.org>
Acked-by: Koen Kooi <koen@openembedded.org>
> ---
> recipes/base-files/base-files/profile | 2 +-
> 1 files changed, 1 insertions(+), 1 deletions(-)
>
> diff --git a/recipes/base-files/base-files/profile b/recipes/base-files/base-files/profile
> index 5797535..b5ce69d 100644
> --- a/recipes/base-files/base-files/profile
> +++ b/recipes/base-files/base-files/profile
> @@ -12,7 +12,7 @@ if [ ! -e /etc/localtime ]; then
> fi
>
> if [ "`id -u`" -eq 0 ]; then
> - PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin:
> + PATH=$PATH:/usr/local/sbin:/usr/sbin:/sbin
> fi
> if [ "$PS1" ]; then
> # works for bash and ash (no other shells known to be in use here)
next prev parent reply other threads:[~2009-06-22 18:46 UTC|newest]
Thread overview: 9+ messages / expand[flat|nested] mbox.gz Atom feed top
2009-06-22 17:44 RFC: [PATCH] /etc/profile: stricter root PATH - require absolute pathname for bins in cwd Denys Dmytriyenko
2009-06-22 18:09 ` Phil Blundell
2009-06-22 18:31 ` Koen Kooi [this message]
2009-06-22 19:47 ` Marcin Juszkiewicz
2009-06-24 5:56 ` RFC: [PATCH] /etc/profile: stricter root PATH -requireabsolute " Douglas Royds
2009-06-24 22:23 ` [STABLE][PATCH] /etc/profile: stricter root PATH - require absolute " Denys Dmytriyenko
2009-06-29 17:44 ` Denys Dmytriyenko
2009-06-30 18:15 ` Koen Kooi
2009-07-14 12:39 ` Marcin Juszkiewicz
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to='h1oimu$5gd$2@ger.gmane.org' \
--to=k.kooi@student.utwente.nl \
--cc=openembedded-devel@lists.openembedded.org \
--cc=openembedded-devel@openembedded.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox