Reviewed-by: Marek Olšák <marek.ol...@amd.com> Marek
On Sun, Mar 26, 2017 at 10:31 PM, Edmondo Tommasina <edmondo.tommas...@gmail.com> wrote: > ... and avoid the load of ~/.drirc to go unnoticed. > --- > src/mesa/drivers/dri/common/xmlconfig.c | 4 ++++ > 1 file changed, 4 insertions(+) > > diff --git a/src/mesa/drivers/dri/common/xmlconfig.c > b/src/mesa/drivers/dri/common/xmlconfig.c > index d4649370ee..fef007996e 100644 > --- a/src/mesa/drivers/dri/common/xmlconfig.c > +++ b/src/mesa/drivers/dri/common/xmlconfig.c > @@ -1015,6 +1015,10 @@ driParseConfigFiles(driOptionCache *cache, const > driOptionCache *info, > if (filenames[i] == NULL) > continue; > > + if (i > 0 && access(filenames[i], R_OK) == 0) > + fprintf(stderr, "ATTENTION: loading user defined drirc %s\n", > + filenames[i]); > + > p = XML_ParserCreate (NULL); /* use encoding specified by file */ > XML_SetElementHandler (p, optConfStartElem, optConfEndElem); > XML_SetUserData (p, &userData); > -- > 2.11.0 > > _______________________________________________ > mesa-dev mailing list > mesa-dev@lists.freedesktop.org > https://lists.freedesktop.org/mailman/listinfo/mesa-dev _______________________________________________ mesa-dev mailing list mesa-dev@lists.freedesktop.org https://lists.freedesktop.org/mailman/listinfo/mesa-dev