Use fchmod() to change permissions of the lock file instead
of chmod(), thus avoid the race that can be exploited to set
a symbolic link to any file or directory in the system.
Signed-off-by: Matthieu Herrb <email address hidden>
Reviewed-by: Alan Coopersmith <email address hidden>
(cherry picked from commit b67581cf825940fdf52bf2e0af4330e695d724a4)
glx: Work around wrong request lengths sent by mesa
mesa used to send too long requests for GLXDestroyPixmap,
GLXDestroyWindow, GLXChangeDrawableAttributes, GLXGetDrawableAttributes
and GLXGetFBConfigsSGIX.
Reviewed-by: Adam Jackson <email address hidden>
Reviewed-by: Kristian Høgsberg <email address hidden>
Reviewed-by: Daniel Stone <email address hidden>
Signed-off-by: Julien Cristau <email address hidden>
(cherry picked from commit ec9c97c6bf70b523bc500bd3adf62176f1bb33a4)
9095585...
by
Tiago Vignatti <email address hidden>
xfree86: loader: fix memory leaks in LoaderListDirs
Signed-off-by: Tiago Vignatti <email address hidden>
Reviewed-by: Peter Hutterer <email address hidden>
Reviewed-by: Nicolas Peninguy <email address hidden>