X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=src%2Fcommon%2Frunas.c;h=471bb22046c3d3bf9f44dbf24c176f089a3e3c2e;hb=a424227e8d392977bc0b465f91c58b03112be0d4;hp=5ab42717a9058b4a5083516aa142a3c1efda226d;hpb=8f0044bfed9f5ca51eab51478f483f92cc8f84a7;p=lttng-tools.git diff --git a/src/common/runas.c b/src/common/runas.c index 5ab42717a..471bb2204 100644 --- a/src/common/runas.c +++ b/src/common/runas.c @@ -17,6 +17,7 @@ */ #define _GNU_SOURCE +#define _LGPL_SOURCE #include #include #include @@ -34,6 +35,7 @@ #include #include #include +#include #include "runas.h" @@ -87,7 +89,7 @@ int use_clone(void) static int use_clone(void) { - return !getenv("LTTNG_DEBUG_NOCLONE"); + return !lttng_secure_getenv("LTTNG_DEBUG_NOCLONE"); } #endif