mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-08-12 20:24:04 +02:00
Merge branch 'wip/pwithnall/gutils-user-database-crash' into 'main'
ci: Fix printing the execution environment See merge request GNOME/glib!3921
This commit is contained in:
@@ -175,6 +175,9 @@ fedora-x86_64:
|
|||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
CFLAGS: "-coverage -ftest-coverage -fprofile-arcs"
|
||||||
|
before_script:
|
||||||
|
- !reference [".build-linux", "before_script"]
|
||||||
|
- !reference [".with-git", "before_script"]
|
||||||
script:
|
script:
|
||||||
- meson setup ${MESON_COMMON_OPTIONS}
|
- meson setup ${MESON_COMMON_OPTIONS}
|
||||||
--werror
|
--werror
|
||||||
@@ -227,6 +230,9 @@ debian-stable-x86_64:
|
|||||||
image: $DEBIAN_IMAGE
|
image: $DEBIAN_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
|
before_script:
|
||||||
|
- !reference [".build-linux", "before_script"]
|
||||||
|
- !reference [".with-git", "before_script"]
|
||||||
script:
|
script:
|
||||||
- meson setup ${MESON_COMMON_OPTIONS}
|
- meson setup ${MESON_COMMON_OPTIONS}
|
||||||
--werror
|
--werror
|
||||||
@@ -296,6 +302,9 @@ muslc-alpine-x86_64:
|
|||||||
image: $ALPINE_IMAGE
|
image: $ALPINE_IMAGE
|
||||||
stage: build
|
stage: build
|
||||||
needs: []
|
needs: []
|
||||||
|
before_script:
|
||||||
|
- !reference [".build-linux", "before_script"]
|
||||||
|
- !reference [".with-git", "before_script"]
|
||||||
script:
|
script:
|
||||||
- meson setup ${MESON_COMMON_OPTIONS}
|
- meson setup ${MESON_COMMON_OPTIONS}
|
||||||
--werror
|
--werror
|
||||||
@@ -368,6 +377,9 @@ G_DISABLE_ASSERT:
|
|||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 15
|
MESON_TEST_TIMEOUT_MULTIPLIER: 15
|
||||||
|
before_script:
|
||||||
|
- !reference [".build-linux", "before_script"]
|
||||||
|
- !reference [".with-git", "before_script"]
|
||||||
script:
|
script:
|
||||||
- meson setup ${MESON_COMMON_OPTIONS}
|
- meson setup ${MESON_COMMON_OPTIONS}
|
||||||
--werror
|
--werror
|
||||||
@@ -403,6 +415,9 @@ valgrind:
|
|||||||
needs: []
|
needs: []
|
||||||
variables:
|
variables:
|
||||||
MESON_TEST_TIMEOUT_MULTIPLIER: 15
|
MESON_TEST_TIMEOUT_MULTIPLIER: 15
|
||||||
|
before_script:
|
||||||
|
- !reference [".build-linux", "before_script"]
|
||||||
|
- !reference [".with-git", "before_script"]
|
||||||
script:
|
script:
|
||||||
- meson setup ${MESON_COMMON_OPTIONS}
|
- meson setup ${MESON_COMMON_OPTIONS}
|
||||||
--werror
|
--werror
|
||||||
|
@@ -664,12 +664,12 @@ g_get_user_database_entry (void)
|
|||||||
struct passwd *pw = NULL;
|
struct passwd *pw = NULL;
|
||||||
gpointer buffer = NULL;
|
gpointer buffer = NULL;
|
||||||
gint error;
|
gint error;
|
||||||
gchar *logname;
|
const char *logname;
|
||||||
|
|
||||||
# if defined (HAVE_GETPWUID_R)
|
# if defined (HAVE_GETPWUID_R)
|
||||||
struct passwd pwd;
|
struct passwd pwd;
|
||||||
# ifdef _SC_GETPW_R_SIZE_MAX
|
# ifdef _SC_GETPW_R_SIZE_MAX
|
||||||
/* This reurns the maximum length */
|
/* This returns the maximum length */
|
||||||
glong bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
|
glong bufsize = sysconf (_SC_GETPW_R_SIZE_MAX);
|
||||||
|
|
||||||
if (bufsize < 0)
|
if (bufsize < 0)
|
||||||
@@ -678,7 +678,7 @@ g_get_user_database_entry (void)
|
|||||||
glong bufsize = 64;
|
glong bufsize = 64;
|
||||||
# endif /* _SC_GETPW_R_SIZE_MAX */
|
# endif /* _SC_GETPW_R_SIZE_MAX */
|
||||||
|
|
||||||
logname = (gchar *) g_getenv ("LOGNAME");
|
logname = g_getenv ("LOGNAME");
|
||||||
|
|
||||||
do
|
do
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user