Loic Le Page
13710c3699
Fix global variable name hidden by local variables in gio/tests/resolver.c
2022-04-04 17:39:42 +01:00
Matthias Clasen
724df43616
Fix trashing sandboxed directories
...
We must not open the fd with O_PATH|O_NOFOLLOW,
since the portal rejects that combination. Leaving
out O_NOFOLLOW is fine in this case - we know it
is a directory, we just received EISDIR.
Fixes : #2629
2022-04-04 10:26:13 -04:00
Marc-André Lureau
f70dc8bcb4
glib/win32: fix spawn from GUI regression
...
In commit 674072b13
("glib/win32: check if dup() failed in helper
process"), I happily added checks for dup() calls in the spawn helper.
However, I didn't realize that GUI applications do not necessarily have
a console attached, and will now fail spawning processes.
One way to check that is via a _fileno() call, as explained in:
https://docs.microsoft.com/en-us/cpp/c-runtime-library/reference/fileno?view=msvc-170#return-value
Fixes:
https://gitlab.gnome.org/GNOME/glib/-/issues/2628
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
2022-04-04 15:59:04 +04:00
Marek Černocký
db76697aee
Updated Czech translation
2022-04-01 23:26:38 +02:00
Philip Withnall
ad23894c15
gatomic: Add a C++ variant of g_atomic_int_compare_and_exchange()
...
The C++ variant implements type safety differently, to avoid warnings
from C++ compilers about:
```
../../../gnome-commander-1.14.2/src/intviewer/searcher.cc:303:5: error: cannot initialize a parameter of type 'gint *' (aka 'int *') with an rvalue of type 'void *'
g_atomic_int_compare_and_exchange ((gint*)&src->priv->progress_value, oldval, (gint)d);
^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
/mnt/b/yoe/master/build/tmp/work/cortexa72-yoe-linux/gnome-commander/1.14.2-r0/recipe-sysroot/usr/include/glib-2.0/glib/gatomic.h:160:44: note: expanded from macro 'g_atomic_int_compare_and_exchange'
__atomic_compare_exchange_n ((atomic), (void *) (&(gaicae_oldval)), (newval), FALSE, __ATOMIC_SEQ_CST, __ATOMIC_SEQ_CST) ? TRUE : FALSE; \
^~~~~~~~~~~~~~~~~~~~~~~~~~~
```
This complements the existing C++ variant for
`g_atomic_pointer_compare_and_exchange()`, and fixes a regression on C++
from https://gitlab.gnome.org/GNOME/glib/-/merge_requests/2114 .
With the addition of the unit tests in the previous commit, this is
effectively tested by the FreeBSD and macOS CI jobs, as they use
`clang++` in C++ mode. `g++` doesn’t seem to emit a warning about this.
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Fixes : #2625
2022-04-01 17:23:23 +01:00
Philip Withnall
16d1bc49cc
tests: Add C++ tests for typechecking with atomic compare and exchanges
...
The tests have to be conditional on C++11 being enabled, as the default
C++ standard on macOS is (for some reason), C++97 (`__cplusplus` is
defined as `199711L`).
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
Helps: #2625
2022-04-01 17:22:33 +01:00
Philip Withnall
4e65bcda0c
tests: Fix a typo in a test skip message
...
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-04-01 17:22:31 +01:00
Philip Withnall
6c31ef6f18
Merge branch 'cleanup-warnings-split-8' into 'main'
...
Cleanup warnings split 8
See merge request GNOME/glib!2497
2022-04-01 15:13:32 +00:00
Loic Le Page
e372ed3413
Fix cast pointer to int warning in gio/tests/socket.c
2022-04-01 15:10:50 +02:00
Loic Le Page
7bd79b112d
Fix non-initialized variable in gio/tests/socket-client.c
2022-04-01 15:10:50 +02:00
Loic Le Page
027e3769ee
Fix global variable name hidden by local variables in gio/tests/socket-server.c
2022-04-01 15:10:50 +02:00
Loic Le Page
7178e10cd5
Fix redefinition of local variable in gio/tests/testfilemonitor.c
2022-04-01 15:10:50 +02:00
Loic Le Page
c324ce5c2a
Fix redefinition of local variable in gio/gactiongroupexporter.c
2022-04-01 15:10:50 +02:00
Loic Le Page
3214a0f333
Fix redefinition of local variable in gio/gapplicationimpl-dbus.c
2022-04-01 15:10:50 +02:00
Loic Le Page
0c1619227c
Fix redefinition of local variable in gio/gdbus-tool.c
2022-04-01 15:10:50 +02:00
Loic Le Page
4bcb7bc631
Fix redefinition of local variable in gio/gdbusauth.c
2022-04-01 15:10:50 +02:00
Loic Le Page
eb157bfa1b
Fix redefinition of local variable in gio/gdbusauthmechanismsha1.c
2022-04-01 15:10:41 +02:00
Andika Triwidada
9884991471
Update Indonesian translation
2022-04-01 03:41:41 +00:00
Philip Withnall
5486e00cf9
Merge branch 'cleanup-warnings-split-5' into 'main'
...
Cleanup warnings split 5
See merge request GNOME/glib!2494
2022-03-31 23:36:36 +00:00
Loic Le Page
bf68e8606b
Fix non-initialized variable and remove obsolete usage of inet_addr in gio/gsocket.c
2022-04-01 00:18:40 +01:00
Loic Le Page
7bde242707
Fix redefinition of local variable in gio/gsocks5proxy.c
2022-04-01 00:18:40 +01:00
Loic Le Page
bd5d867320
Fix global variable name hidden by local variables in gio/gthreadedresolver.c
2022-04-01 00:18:40 +01:00
Loic Le Page
49d0c5a90b
Fix redefinition of local variable in gio/gtlscertificate.c
2022-04-01 00:18:40 +01:00
Loic Le Page
84dabcf274
Fix global and local variables hidden by local variables and non-initialized variables in gio/gwin32appinfo.c
2022-04-01 00:18:40 +01:00
Loic Le Page
155657de3e
Fix redefinition of local variable in gio/gwin32file-sync-stream.c
2022-04-01 00:18:40 +01:00
Loic Le Page
704c65228f
Fix global variable name hidden by local variables in glib/tests/asyncqueue.c
2022-04-01 00:18:40 +01:00
Loic Le Page
29c15bc325
Fix global variable name hidden by local variables in glib/tests/base64.c
2022-04-01 00:18:40 +01:00
Loic Le Page
7c138574bd
Fix global variable name hidden by local variables in glib/tests/cond.c
2022-04-01 00:18:40 +01:00
Philip Withnall
c90b80b7b1
build: Post-release version bump to 2.73.0
...
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-03-31 18:17:37 +01:00
Philip Withnall
f8302d29f1
Merge branch 'wip/smcv/simplify-openpty-linking' into 'main'
...
tests: Call openpty (if available) without using dlsym
See merge request GNOME/glib!2562
2022-03-31 15:09:46 +00:00
Philip Withnall
dabf3ab5f2
Merge branch 'glib-2-74-macros' into 'main'
...
gversionmacros: Add version macros for GLib 2.74
See merge request GNOME/glib!2572
2022-03-31 15:06:52 +00:00
Philip Withnall
7d4bc30e7d
Merge branch 'cleanup-warnings-split-7' into 'main'
...
Cleanup warnings split 7
See merge request GNOME/glib!2496
2022-03-31 12:26:41 +00:00
Loic Le Page
6888f9e17e
Fix too small array definition in gio/gdummyfile.c (no room for the '\0')
2022-03-31 13:10:26 +01:00
Loic Le Page
5ec3a425d2
Fix non-initialized variable in gio/gfile.c
2022-03-31 13:10:25 +01:00
Loic Le Page
397ccd833b
Fix global variable name hidden by local variables in gio/gfileinfo.c
2022-03-31 13:10:25 +01:00
Loic Le Page
cbdddf82c0
Fix global variable name hidden by local variables in gio/gio-tool-info.c
2022-03-31 13:10:25 +01:00
Loic Le Page
72cc5b3910
Fix global variable name hidden by local variables in gio/gio-tool-list.c
2022-03-31 13:10:25 +01:00
Loic Le Page
71de9553ca
Fix global variable name hidden by local variables in gio/gio-tool-mount.c
2022-03-31 13:10:25 +01:00
Loic Le Page
c0dabdd8df
Fix global variable name hidden by local variables in gio/gio-tool-save.c
2022-03-31 13:10:25 +01:00
Loic Le Page
781231d556
Fix global variable name hidden by local variables in gio/gio-tool-trash.c
2022-03-31 13:10:25 +01:00
Loic Le Page
a30ae2497d
Fix redefinition of local variable in gio/giomodule.c
2022-03-31 13:10:25 +01:00
Loic Le Page
94264e6190
Fix redefinition of local variable in gio/giowin32-private.c
2022-03-31 13:10:25 +01:00
Emmanuele Bassi
136dc8afff
Merge branch 'fix-deprecation-build' into 'main'
...
tests: Fix compilation when GLIB_DISABLE_DEPRECATION_WARNINGS is defined
See merge request GNOME/glib!2567
2022-03-30 15:26:54 +00:00
Philip Withnall
2501f24f7a
Merge branch 'revert-2541-meson-python' into 'main'
...
Revert "meson: simplify lookup of python command"
See merge request GNOME/glib!2565
2022-03-29 11:35:38 +00:00
Balázs Úr
e78d247848
Update Hungarian translation
2022-03-28 22:52:30 +00:00
Philip Withnall
2215c88d76
Merge branch 'macos-broken-poll' into 'main'
...
meson: Set BROKEN_POLL in macOS builds
See merge request GNOME/glib!2571
2022-03-28 11:59:59 +00:00
Haruka Ma
be5acbb5e6
meson: Set BROKEN_POLL in macOS builds
2022-03-28 11:59:59 +00:00
Philip Withnall
4f79f0712c
gversionmacros: Add version macros for GLib 2.74
...
Signed-off-by: Philip Withnall <pwithnall@endlessos.org>
2022-03-28 12:55:20 +01:00
Andre Klapper
01a1caa93f
Fix invalid markup in Bulgarian translation
2022-03-27 15:23:13 +02:00
Aleksandr Melman
5d99ec076e
Update Russian translation
2022-03-27 12:12:26 +00:00