public inbox for gcc-patches@gcc.gnu.org
 help / color / mirror / Atom feed
From: Franz Sirl <Franz.Sirl-kernel@lauterbach.com>
To: Tom de Vries <Tom_deVries@mentor.com>, Jakub Jelinek <jakub@redhat.com>
Cc: Joseph Myers <joseph@codesourcery.com>,
	GCC Patches <gcc-patches@gcc.gnu.org>,
	Thomas Schwinge <thomas@codesourcery.com>
Subject: Re: [PATCH] Use secure_getenv for GOMP_DEBUG
Date: Mon, 03 Jul 2017 12:26:00 -0000	[thread overview]
Message-ID: <1fbc8af9-e152-0315-3074-5c4839fd3c1b@lauterbach.com> (raw)
In-Reply-To: <46104e74-3bac-13b1-54ca-025eb5c48920@mentor.com>

Am 27.06.17 um 13:10 schrieb Tom de Vries:
> --- a/libgomp/plugin/plugin-hsa.c
> +++ b/libgomp/plugin/plugin-hsa.c
> @@ -39,32 +39,7 @@
>   #include <dlfcn.h>
>   #include "libgomp-plugin.h"
>   #include "gomp-constants.h"
> -
> -/* Secure getenv() which returns NULL if running as SUID/SGID.  */
> -#ifndef HAVE_SECURE_GETENV
> -#ifdef HAVE___SECURE_GETENV
> -#define secure_getenv __secure_getenv
> -#elif defined (HAVE_UNISTD_H) && defined(HAVE_GETUID) && defined(HAVE_GETEUID) \
> -  && defined(HAVE_GETGID) && defined(HAVE_GETEGID)
> -
> -#include <unistd.h>
> -
> -/* Implementation of secure_getenv() for targets where it is not provided but
> -   we have at least means to test real and effective IDs. */
> -
> -static char *
> -secure_getenv (const char *name)
> -{
> -  if ((getuid () == geteuid ()) && (getgid () == getegid ()))
> -    return getenv (name);
> -  else
> -    return NULL;
> -}
> -
> -#else
> -#define secure_getenv getenv
> -#endif
> -#endif
> +#include "secure-getenv.h"

Hi,

that should be secure_getenv.h (underscore instead of dash).

Franz

  parent reply	other threads:[~2017-07-03 12:26 UTC|newest]

Thread overview: 31+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2017-06-26 11:24 [PATCH, 0/4] Handle GOMP_OPENACC_NVPTX_{DISASM,SAVE_TEMPS,JIT} in libgomp nvptx plugin Tom de Vries
2017-06-26 11:32 ` [PATCH, 1/4] Show value of GOMP_OPENACC_DIM " Tom de Vries
2017-06-27 16:44   ` Tom de Vries
2017-06-26 11:39 ` [PATCH, 2/4] Handle GOMP_OPENACC_NVPTX_{DISASM,SAVE_TEMPS} " Tom de Vries
2017-06-26 15:27   ` Joseph Myers
2017-06-26 15:29     ` Jakub Jelinek
2017-06-27  7:18       ` [PATCH] Use secure_getenv for GOMP_DEBUG Tom de Vries
2017-06-27  7:38         ` Jakub Jelinek
2017-06-27 11:10           ` Tom de Vries
2017-06-27 11:21             ` Jakub Jelinek
2017-07-03 12:26             ` Franz Sirl [this message]
2017-07-03 13:42               ` Tom de Vries
2017-06-27 12:19       ` [PATCH, 2/4] Handle GOMP_OPENACC_NVPTX_{DISASM,SAVE_TEMPS} in libgomp nvptx plugin Tom de Vries
2017-07-03 14:08       ` Thomas Schwinge
2017-07-03 14:18         ` Jakub Jelinek
2017-07-03 14:24         ` Tom de Vries
2017-07-04 10:06           ` Tom de Vries
2017-07-04 10:16             ` [PATCH, 1/3] Handle GOMP_NVPTX_{DISASM,SAVE_TEMPS} " Tom de Vries
2017-07-04 10:19             ` [PATCH, 2/3] Handle GOMP_NVPTX_PTXRW " Tom de Vries
2017-07-04 10:23             ` [PATCH, 3/3] Handle GOMP_NVPTX_JIT={-O[0-4],-ori,-arch=<n>} " Tom de Vries
2017-08-29  9:02               ` [PING] " Tom de Vries
2017-11-07 14:54             ` [PATCH, 2/4] Handle GOMP_OPENACC_NVPTX_{DISASM,SAVE_TEMPS} " Cesar Philippidis
2017-11-07 15:31               ` Jakub Jelinek
2017-11-22  0:19                 ` [PATCH] Handle GOMP_NVPTX_PTXRW " Tom de Vries
2017-06-26 11:42 ` [PATCH, 0/4] Handle GOMP_OPENACC_NVPTX_{DISASM,SAVE_TEMPS,JIT} " Tom de Vries
2017-06-26 11:48   ` [PATCH, 3/4] Handle GOMP_OPENACC_NVPTX_JIT=-O[0-4] " Tom de Vries
2017-06-26 11:44 ` [PATCH, 4/4] Handle GOMP_OPENACC_NVPTX_JIT=-ori " Tom de Vries
2017-06-30 15:49   ` Tom de Vries
2017-06-27  9:17 ` [PATCH, 5/4] Handle GOMP_OPENACC_NVPTX_PTXRW " Tom de Vries
2017-06-30 15:59   ` Tom de Vries
2017-06-30 16:06 ` [PATCH, 6/4] Handle GOMP_OPENACC_NVPTX_JIT=-arch=<n> " Tom de Vries

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=1fbc8af9-e152-0315-3074-5c4839fd3c1b@lauterbach.com \
    --to=franz.sirl-kernel@lauterbach.com \
    --cc=Tom_deVries@mentor.com \
    --cc=gcc-patches@gcc.gnu.org \
    --cc=jakub@redhat.com \
    --cc=joseph@codesourcery.com \
    --cc=thomas@codesourcery.com \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).