https://github.com/GNOME/glib

sort by:
Revision Author Date Message Commit Date
05be19b Merge branch 'wip/smcv/array-memcpy-ub' into 'master' array: Avoid use of memcpy(dest, NULL, 0) See merge request GNOME/glib!1180 24 October 2019, 11:49:09 UTC
d62c1da Merge branch 'wip/array-doc-comments' into 'master' Improve GPtrArray doc-comments See merge request GNOME/glib!1179 24 October 2019, 11:44:38 UTC
3837b83 array: Avoid use of memcpy(dest, NULL, 0) glibc declares memcpy() with the first two arguments (the pointers) annotated as non-null via an attribute, which results in the undefined behaviour sanitizer considering it to be UB to pass a null pointer in the second argument, even if we are copying 0 bytes (and hence not actually dereferencing the pointer). This shows up in array-test when run with the undefined behaviour sanitizer. Signed-off-by: Simon McVittie <smcv@collabora.com> 24 October 2019, 11:08:20 UTC
acbbe7b array: Add tests based on the g_ptr_array_sort[_with_data] doc-comments Note that I deliberately haven't used g_autoptr here, because while we encourage GLib users to use g_autoptr in their own code, GLib itself still supports being compiled in environments like MSVC that can't support g_autoptr. Signed-off-by: Simon McVittie <smcv@collabora.com> 24 October 2019, 11:02:33 UTC
ee13eb5 array: Fix handling of user_data in doc-comment The user_data for g_ptr_array_sort_with_data is passed directly, not with an extra layer of pointer like the data pointers. Signed-off-by: Simon McVittie <smcv@collabora.com> Fixes: 52c130f8 24 October 2019, 10:57:29 UTC
ef6fe19 array: Remove unnecessary casts from doc-comments Let's not encourage library users to sprinkle casts through their code when they don't need to. Signed-off-by: Simon McVittie <smcv@collabora.com> Fixes: 52c130f8 24 October 2019, 10:57:13 UTC
8a7b375 Update Catalan translation 23 October 2019, 19:58:05 UTC
d515a1e Merge branch '1813-option-context-annotations' into 'master' goption: Add missing (array) annotation to add_main_entries() Closes #1813 See merge request GNOME/glib!942 22 October 2019, 10:05:06 UTC
611ea6e Merge branch '1836-dbus-connection-docs' into 'master' gdbusconnection: Clarify nullability in a documentation comment Closes #1836 See merge request GNOME/glib!1003 22 October 2019, 07:48:13 UTC
9c7a8c7 Merge branch 'testfilemonitor-leaks' into 'master' Fix some minor leaks in testfilemonitor See merge request GNOME/glib!1167 22 October 2019, 06:58:55 UTC
b7e84fb testfilemonitor: Fix a trivial leak in the test Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1910 18 October 2019, 16:02:57 UTC
322347e Merge branch 'assert-finalize-test' into 'master' tests: Add a test for g_assert_finalize_object() See merge request GNOME/glib!1014 18 October 2019, 15:46:33 UTC
b0f43cc Merge branch '1903-mimeapps-test-race' into 'master' Fix thread unsafety in GFileMonitorSource and mimeapps test Closes #1903 See merge request GNOME/glib!1164 18 October 2019, 15:32:04 UTC
31f9249 tests: Add a test for g_assert_finalize_object() A simple test just to double-check it works. See #488. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #488 18 October 2019, 14:55:27 UTC
f904587 Merge branch 'locale-docs' into 'master' gcharset: Expand the documentation for g_get_locale_variants() See merge request GNOME/glib!1163 18 October 2019, 14:38:36 UTC
51c3cf7 Merge branch 'timezone-test-toolbox' into 'master' Fix gdatetime tests on toolbox See merge request GNOME/glib!1168 18 October 2019, 14:34:07 UTC
bab6acf Merge branch 'atomic-strict-aliasing-fixes' into 'master' Strict-aliasing fixes to new atomic built-ins See merge request GNOME/glib!1155 18 October 2019, 14:00:26 UTC
5dedc25 gtimezone: Clarify in docs that TZ can contain an absolute path Signed-off-by: Philip Withnall <withnall@endlessm.com> 16 October 2019, 13:32:33 UTC
c4d46d6 tests: Relax the time zone identifier tests On closer reading of `man 3 timezone`, it’s actually permissible for `TZ` to contain an absolute path which points to a tzfile file outside the system time zone database. This is indeed what happens when building GLib under Fedora’s toolbox, so relax that check in the tests. Signed-off-by: Philip Withnall <withnall@endlessm.com> 16 October 2019, 13:32:20 UTC
3dec72b Merge branch 'wip/lantw/use-uname-as-a-fallback-to-get-os-info' into 'master' Use uname as a fallback to get OS info See merge request GNOME/glib!1165 14 October 2019, 13:10:39 UTC
d219b35 gutils: Use uname to report OS info when there is no os-release file There are a lot of Unix-like systems which have not implemented the os-release spec. On such system, we can use POSIX uname function as a fallback to get basic information of the system. 14 October 2019, 12:42:08 UTC
00abf67 gutils: Only use the default OS name on Linux /etc/os-release is a spec designed for Linux. While other OSes can implement it, it doesn't make sense to use Linux as the default value on systems which don't use Linux. 14 October 2019, 12:25:51 UTC
89ad928 gutils: Do not translate OS names The code is intended to provide an interface similar to /etc/os-release, but /etc/os-release isn't designed to be translated. 14 October 2019, 12:25:51 UTC
493909b Merge branch 'osinfo' into 'master' Add Windows support to g_get_os_info() See merge request GNOME/glib!1160 14 October 2019, 12:12:06 UTC
592a13b glocalfilemonitor: Keep a weak ref to the monitor in GFileMonitorSource Previously we were keeping a pointer to the `GFileMonitor` in a `GFileMonitorSource` instance, but since we weren’t keeping a strong reference, that `GFileMonitor` instance could be finalised from another thread at any point while the source was referring to it. Not good. Use a weak reference, and upgrade it to a strong reference whenever the `GFileMonitorSource` is referring to the file monitor. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1903 11 October 2019, 21:31:24 UTC
5b07fc9 gdesktopappinfo: Cancel file monitor when resetting a DesktopFileDir It’s not enough to unref the monitor, since the GLib worker thread might still hold a reference to it. Signed-off-by: Philip Withnall <withnall@endlessm.com> Helps: #1903 11 October 2019, 21:31:24 UTC
bffe058 gdesktopappinfo: Allocate DesktopFileDir structs dynamically `DesktopFileDir` pointers are passed around between threads: they are initially created on the main thread, but a pointer to them is passed to the GLib worker thread in the file monitor callback (`desktop_file_dir_changed()`). Accordingly, the `DesktopFileDir` objects either have to be (1) immutable; (2) reference counted; or (3) synchronised between the two threads to avoid one of them being used by one thread after being freed on another. Option (1) changed with commit 99bc33b6 and is no longer an option. Option (3) would mean blocking the main thread on the worker thread, which would be hard to achieve and is against the point of having a worker thread. So that leaves option (2), which is implemented here. Signed-off-by: Philip Withnall <withnall@endlessm.com> Fixes: #1903 11 October 2019, 21:31:24 UTC
cea8424 gcharset: Expand the documentation for g_get_locale_variants() Include some more examples, and a reference to the format of locales. Signed-off-by: Philip Withnall <withnall@endlessm.com> 11 October 2019, 10:47:42 UTC
fc2f566 Add Windows support to g_get_os_info() Most of the info returned is static, the only thing that changes is the OS version. This code relies on g_win32_check_windows_version() providing accurate information (hopefully, MS won't nix RtlGetVersion() on which we use for that) and supplements it with information from the registry for Windows >= 8.1. 11 October 2019, 06:07:26 UTC
c7dd1ae Merge branch '1896-use-after-free-when-calling-g_dbus_connection_flush_sync-in-a-dedicated-thread' into 'master' Resolve "Use after free when calling g_dbus_connection_flush_sync() in a dedicated thread" Closes #1896 See merge request GNOME/glib!1158 10 October 2019, 14:55:20 UTC
822f8ba Fix use-after-free when calling g_dbus_connection_flush_sync() When the _g_dbus_worker_flush_sync() schedules the 'data' and releases the worker->write_lock, it is possible for the GDBus worker thread thread to finish the D-Bus call and acquire the worker->write_lock before the _g_dbus_worker_flush_sync() re-acquires it in the if (data != NULL) body. When that happens, the ostream_flush_cb() increases the worker->write_num_messages_flushed and then releases the worker->write_lock. The write lock is reacquired by the _g_dbus_worker_flush_sync(), which sees that the while condition is satisfied, thus it doesn't enter the loop body and immediately clears the data members and frees the data structure itself. The ostream_flush_cb() is still ongoing, possibly inside flush_data_list_complete(), where it accesses the FlushData, which can be in any stage of being freed. Instead, add an explicit boolean flag indicating when the flush is truly finished. Closes #1896 10 October 2019, 14:55:20 UTC
c975657 Merge branch 'wip/tingping/localhost-is-local' into 'master' Always resolve localhost to loopback address See merge request GNOME/glib!616 10 October 2019, 14:53:42 UTC
a50a08f Merge branch 'datetime-docs' into 'master' gdatetime: Document RFC 3339 extensions when parsing ISO 8601 See merge request GNOME/glib!1082 10 October 2019, 14:06:13 UTC
ea98aab gdatetime: Document RFC 3339 extensions when parsing ISO 8601 This is a follow-up to !1017. Signed-off-by: Philip Withnall <withnall@endlessm.com> 10 October 2019, 14:06:13 UTC
168bdb1 Merge branch 'hash-me-faster' into 'master' hash: Remove an assertion from the hot path See merge request GNOME/glib!1161 10 October 2019, 14:01:21 UTC
ea99872 Always resolve localhost to loopback address This always resolves "localhost" to a loopback address which has security benefits such as preventing a malicious dns server redirecting local connections and allows software to assume it is a secure hostname. This is being adopted by web browsers: - https://w3c.github.io/webappsec-secure-contexts/ - https://groups.google.com/a/chromium.org/forum/#!msg/blink-dev/RC9dSw-O3fE/E3_0XaT0BAAJ - https://chromium.googlesource.com/chromium/src.git/+/8da2a80724a9b896890602ff77ef2216cb951399 - https://bugs.webkit.org/show_bug.cgi?id=171934 - https://tools.ietf.org/html/draft-west-let-localhost-be-localhost-06 10 October 2019, 13:32:18 UTC
01acb89 tests: Don't block mainloop for delays in gnetworkaddress tests 10 October 2019, 13:32:18 UTC
1fb3628 hash: Remove an assertion from the hot path This assert is using atomics and was showing up in some cache-heavy GTK profiles. Remove it. 10 October 2019, 13:24:42 UTC
b50447b Merge branch 'issue1906' into 'master' gutils test: Don't assume that every Unix OS implements os-release(5) Closes #1906 See merge request GNOME/glib!1159 10 October 2019, 13:18:44 UTC
0869cde Merge branch '1858-tutorial-deprecated-gobject-api' into 'master' Fix handling of private object members in GObject property tutorial Closes #1858 See merge request GNOME/glib!1069 10 October 2019, 13:15:39 UTC
150b946 Updated Spanish translation 10 October 2019, 11:55:48 UTC
d770e00 Merge branch 'wip/g-warning-once' into 'master' gmessages: Add g_warning_once() See merge request GNOME/glib!1028 09 October 2019, 15:09:53 UTC
15e3b6f gmessages: Add g_warning_once() In many places the pattern static gboolean warned_once = FALSE; if (!warned_once) { g_warning ("This and that"); warned_once = TRUE; } is used to not spam the same warning message over and over again. Add a helper in glib for this, allowing the above statement to be changed to g_warning_once ("This and that"); 09 October 2019, 14:39:31 UTC
f9a1970 gutils test: Don't assume that every Unix OS implements os-release(5) os-release(5) is widely implemented on Linux, but not necessarily ubiquitous: unusual or minimal Linux distributions might not have it. It could in principle be implemented by any other Unix OS, but in practice this has not yet happened. Closes: https://gitlab.gnome.org/GNOME/glib/issues/1906 Fixes: 349318e8 "gutils: Add g_get_os_info()" Signed-off-by: Simon McVittie <smcv@collabora.com> 09 October 2019, 13:11:08 UTC
35e2615 Merge branch 'android-warning-fixes' into 'master' Fix various compiler warnings on Android See merge request GNOME/glib!1157 09 October 2019, 12:33:00 UTC
8492df9 gdbusaddress: Validate the noncefile attribute of nonce-tcp addresses Doing this mostly to fix a compiler warning about tautological assignments on Android. See the D-Bus specification: https://dbus.freedesktop.org/doc/dbus-specification.html#transports-nonce-tcp-sockets Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 October 2019, 12:53:01 UTC
e990038 gdbusaddress: Collapse two translatable strings into one Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 October 2019, 12:51:57 UTC
3c4ff30 gunicollate: Remove tautological comparison As an unsigned integer, this variable is always greater than or equal to zero. Fixes a compiler warning on Android. Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 October 2019, 12:50:13 UTC
e257e17 inotify: Fix some enum comparisons to integers `-1` isn’t a valid member of the enum, so cast to `int` first. This fixes a compiler warning on Android. Signed-off-by: Philip Withnall <withnall@endlessm.com> 08 October 2019, 12:49:40 UTC
1bda4db Update Chinese (Taiwan) translation 08 October 2019, 10:45:43 UTC
0d94ee3 Merge branch 'master' into 'master' Erase GI annotation: skip g_cancellable_source_new Closes #1877 See merge request GNOME/glib!1048 08 October 2019, 10:33:40 UTC
45c91d7 Merge branch 'g-os-info' into 'master' gutils: Add g_get_os_info() See merge request GNOME/glib!1063 08 October 2019, 10:30:24 UTC
ab613ae Merge branch '1726-gdbus-codegen-h' into 'master' Resolve "Warn when method/signal uses type 'h' but lacks GDBus.C.UnixFD annotation" Closes #1726 See merge request GNOME/glib!1079 08 October 2019, 10:26:45 UTC
b229eed Merge branch 'str-printf-abort-oom' into 'master' Ensure that g_vasprintf will always abort on OOM and some docs fixes Closes #1622 See merge request GNOME/glib!1145 07 October 2019, 17:21:32 UTC
109be1e glib: add parameter annotations for g_vasprintf and callers Document that g_vasprintf and g_strdup_printf are guaranteed to return a non-NULL string, unless the format string contains the locale sensitive conversions %lc or %ls. Further annotate that the output parameter for g_vasprintf and the format string for all functions must be non-NULL. Fixes #1622 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> 07 October 2019, 16:29:34 UTC
1403501 glib: ensure consistent abort-on-OOM with g_vasprintf & its callers The g_vasprintf method is called by g_strdup_vprintf, g_strdup_printf, g_string_append_vprintf and more. It has three different implementations depending on what the build target platform supports: 1. The gnulib impl appears to use the system malloc, but a '#define malloc g_malloc' causes it to use GLib's wrapper and thus abort on OOM. This mostly gets used on Windows platforms or UNIX platforms with broken printf formatting. 2. The main impl mostly used on modern Linux/UNIX calls the system vasprintf which uses the system malloc and does not abort on OOM. 3. The final impl used on remaining platforms calls system vsprintf on a buffer allocated by g_new, and thus always aborts on OOM. Of note is that impl 2 (using vasprintf) historically could abort on OOM, if the application had installed a non-system malloc impl with GLib. This was because the code would g_strndup the result from vasprintf() in that scenario. This was removed in: commit a3660532535f92cfac136435579ed4f23231f48c Author: Dan Winship <danw@gnome.org> Date: Fri Aug 7 09:46:49 2015 -0400 glib: remove deprecated g_mem_is_system_malloc() check in gprintf.c Having inconsistent OOM behaviour for the three impls is undesirable and aborting on OOM is normal pratice for GLib APIs. Thus we must thus ensure this happens in all impls of g_vasprintf. Fixes #1622 Signed-off-by: Daniel P. Berrangé <berrange@redhat.com> 07 October 2019, 16:29:29 UTC
d9b30d4 gmain: Remove some redundant casts These were introducing strict aliasing warnings. Remove them (in line with other uses of `g_once_init_leave()`). Signed-off-by: Philip Withnall <withnall@endlessm.com> 07 October 2019, 15:29:26 UTC
3251cce gatomic: Fix strict aliasing problems with g_atomic_pointer_{get,set}() Casting pointer types around is a bit fiddly when you also end up dereferencing them. Take advantage of the fact that the `__atomic_load()` and `__atomic_store()` built-ins are polymorphic, and use `__typeof__()` to ensure that the atomic pointer macros use the caller-provided types internally, and hence any type mismatches are entirely the caller’s fault rather than ours. This also means that the `__atomic_{load,store}()` built-ins have the right alignment and width data from the caller-provided types, in case that’s needed. Signed-off-by: Philip Withnall <withnall@endlessm.com> 07 October 2019, 15:23:02 UTC
81f8d02 glib: Various fixes to the return type of atomic functions Various places that used atomic functions were using the wrong return type. Fix that. This introduces no functional changes. Signed-off-by: Philip Withnall <withnall@endlessm.com> 07 October 2019, 15:21:24 UTC
4e12e7e Merge branch 'th/main-context-default-no-mutex' into 'master' gmain: use atomic operation instead of GMutex to access g_main_context_default() See merge request GNOME/glib!1135 07 October 2019, 13:22:30 UTC
39dd2be gmain: use atomic operation instead of GMutex to access g_main_context_default() I think it is wasteful to use a mutex every time the default main context is accessed. Especially, as the default main context is used all the time. 07 October 2019, 13:22:30 UTC
038ec3d Merge branch 'add_array_steal_function' into 'master' Add g_array_steal(), g_ptr_array_steal() and g_byte_array_steal() Closes #285 See merge request GNOME/glib!1019 07 October 2019, 13:07:56 UTC
7bada83 Add g_array_steal(), g_ptr_array_steal() and g_byte_array_steal() Closes issue #285 07 October 2019, 12:38:24 UTC
c88f106 Merge branch 'wip/oholy/gio-completion' into 'master' Several gio-tool bash completion fixes and improvements See merge request GNOME/glib!1153 07 October 2019, 09:23:41 UTC
a350fa5 Merge branch 'winhttp-handle-null-prgname' into 'master' gwinhttpvfs: Handle g_get_prgname() returning NULL See merge request GNOME/glib!1152 07 October 2019, 09:04:06 UTC
419b7d0 Merge branch 'glib-g_ptr_array_sort_api_doc_example' 07 October 2019, 08:53:01 UTC
52c130f Add full examples to g_ptr_array_sort() and g_ptr_array_sort_with_data() With changes by Emmanuel Fleury and Philip Withnall. Closes issue #9 07 October 2019, 08:50:51 UTC
acf55ad Merge branch 'solaris-build-fixes' into 'master' Solaris build fixes See merge request GNOME/glib!1146 07 October 2019, 08:44:39 UTC
b3bf1e2 gio: Always include mounts in the results Mounts are currently completed only if the prefix looks like scheme, however, this doesn't work well if the mounts have also path component. Let's always include them to fix this issue. The mounts are cached by the volume monitors, so it should not significantly affect the performance. 07 October 2019, 07:21:19 UTC
8bc5210 gio: Complete also activation roots of volumes Currently, "gio mount google-drive<tab>" isn't completed even though that volume exists for google-drive://oholy@redhat.com/. Let's use "gio mount -li" output to complete also activation roots of volumes. 07 October 2019, 07:21:19 UTC
3a1492e gio: Fix completion of URIs without hostname part Currently, "gio list file:///h<tab>" doesn't complete "file:///home" because the result of "dirname file:///h" is not "file:///" but "file:/", which breaks the consequent logic. Let's subtract basename from the path in order to workaround this issue. 07 October 2019, 07:21:09 UTC
bf2a102 gwinhttpvfs: Handle g_get_prgname() returning NULL When prgname wasn't set NULL would be passed to g_utf8_to_utf16() resulting in "g_utf8_to_utf16: assertion 'str != NULL' failed" 06 October 2019, 18:05:44 UTC
dd27d2b Merge branch 'patch-1' into 'master' gio/gfile: fix parameter reference for value_p See merge request GNOME/glib!1149 06 October 2019, 13:18:44 UTC
cb97f0e Merge branch 'dlech-master-patch-99473' into 'master' gio/gfileinfo: fix parameter references See merge request GNOME/glib!1148 06 October 2019, 13:17:59 UTC
5ac73a0 Merge branch 'patch-2' into 'master' gio/gfile: fix parameter references to @contents See merge request GNOME/glib!1150 06 October 2019, 13:17:17 UTC
c46c31d Merge branch 'patch-3' into 'master' gio/gfile: fix typo in doc comment See merge request GNOME/glib!1151 06 October 2019, 13:16:23 UTC
4723bf5 gio/gfile: fix typo in doc comment This fixes a typo in g_file_has_prefix() do comments. 06 October 2019, 02:01:48 UTC
f71eca1 gio/gfile: fix parameter references to @contents Fix a number of occurrences where the parameter reference was missing the trailing 's' 06 October 2019, 01:55:40 UTC
5120f92 gio/gfile: fix parameter reference for value_p This fixes a parameter reference to @value_p in g_file_set_attribute() 06 October 2019, 01:48:15 UTC
5dee526 gio/gfileinfo: fix parameter references This fixes a couple of parameter references for @info in the doc comments. 05 October 2019, 22:36:19 UTC
25ed7d4 Merge branch 'gmodule-typo' into 'master' gmodule: fix typo in doc comment See merge request GNOME/glib!1147 05 October 2019, 06:56:01 UTC
5a57bdb gmodule: fix typo in doc comment s/opended/opened/ 05 October 2019, 01:45:22 UTC
2b34f52 build: no --export-dynamic ldflags for Solaris Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 04 October 2019, 20:23:25 UTC
e5e1490 gunixmounts: Handle Solaris name of mnt_mntopts in place of mnt_opts Fixes build failure: ../gio/gunixmounts.c: In function ‘_g_get_unix_mounts’: ../gio/gunixmounts.c:742:53: error: ‘struct mnttab’ has no member named ‘mnt_opts’; did you mean ‘mnt_mntopts’? 742 | mntent.mnt_opts, | ^~~~~~~~ | mnt_mntopts Signed-off-by: Alan Coopersmith <alan.coopersmith@oracle.com> 04 October 2019, 19:55:17 UTC
c08e7b9 Merge branch 'switch_to_gnu99' into 'master' Switching from C gnu89 to C gnu99 standard See merge request GNOME/glib!1035 04 October 2019, 14:51:10 UTC
66da7be 2.63.0 Signed-off-by: Philip Withnall <withnall@endlessm.com> 04 October 2019, 13:55:44 UTC
d207e19 Merge branch 'wip/tingping/pkcs11' into 'master' gtlscertificate: Add pkcs11-uri property and constructor Closes #1809 See merge request GNOME/glib!933 03 October 2019, 12:12:16 UTC
b6d8efb gtlscertificate: Add support for PKCS #11 backed certificates This adds properties to allow backends to expose PKCS #11 support. 02 October 2019, 17:12:40 UTC
0c40f3f Merge branch 'cross-installed-tests' into 'master' Always build tests if we enabled installed-tests See merge request GNOME/glib!1138 02 October 2019, 15:54:19 UTC
406c8b0 Merge branch 'file-permissions-redux' into 'master' Fix handling of G_FILE_COPY_TARGET_DEFAULT_PERMISSIONS in g_file_copy() Closes #174 See merge request GNOME/glib!1134 02 October 2019, 15:40:09 UTC
9a5a5c8 Merge branch 'exact-mtime' into 'master' g_file_info_get_modification_date_time: Calculate in integer domain See merge request GNOME/glib!1139 02 October 2019, 08:52:40 UTC
14609b0 g_file_info_get_modification_date_time: Calculate in integer domain g_date_time_add_seconds() and g_date_time_add_full() use floating-point seconds, which can result in the value varying slightly from what's actually on disk. This causes intermittent test failures in gio/tests/g-file-info.c on Debian i386, where we set a file's mtime to be 50µs later, then read it back and sometimes find that it is only 49µs later than the previous value. I've only seen this happen on i386, which means it might be to do with different floating-point rounding when a value is stored in the 80-bit legacy floating point registers rather than in double precision. g_date_time_add() takes a GTimeSpan, which is in microseconds; conveniently, that's exactly what we get from the GFileInfo. Bug-Debian: https://bugs.debian.org/941547 Signed-off-by: Simon McVittie <smcv@collabora.com> 02 October 2019, 07:30:35 UTC
788c01d Updated Danish translation 02 October 2019, 03:54:08 UTC
42d8e17 Always build tests if we enabled installed-tests If we're cross-compiling, the installed-tests are useful even if we can't run them on the build machine: we can copy them to the host machine (possibly via a distro package like Debian's libglib2.0-tests) and run them there. While I'm changing the build-tests condition anyway, deduplicate it. Based on a patch by Helmut Grohne. Bug-Debian: https://bugs.debian.org/941509 Signed-off-by: Simon McVittie <smcv@collabora.com> 01 October 2019, 19:12:16 UTC
90bdc2f Merge branch 'gregistry-key-name-len' into 'master' gregistrysettings: bump key name length to 2048 See merge request GNOME/glib!1137 01 October 2019, 13:03:28 UTC
9239f26 gregistrysettings: bump key name length to 128 32 is just too low for key names, specially since the registry has a limit of 16,383 chars. Giving that, 128 is a good bump for now. 01 October 2019, 12:35:43 UTC
eb21257 tests: Expand g_file_copy() tests to test DEFAULT_PERMS flag Signed-off-by: Philip Withnall <withnall@endlessm.com> 30 September 2019, 13:40:55 UTC
67772b6 tests: Unconditionally enable the file permissions test Skip it on systems which don’t support it, rather than compiling it out. That gives us more information from test runs about which tests are being run on which architectures. Signed-off-by: Philip Withnall <withnall@endlessm.com> 30 September 2019, 13:40:55 UTC
bfdc5fc glocalfileinfo: Only return file mode, not type, as UNIX_MODE attribute As with the previous commit, `st_mode` contains both the file type (regular file, directory, symlink, special, etc.) and the file mode. For `G_FILE_ATTRIBUTE_ID_UNIX_MODE`, we only want the file mode — so mask `st_mode` with `~S_IFMT`. Signed-off-by: Philip Withnall <withnall@endlessm.com> 30 September 2019, 13:40:55 UTC
5dd5269 glocalfileoutputstream: Only pass file mode, not type, to chmod() chmod() technically only accepts file modes, not the file type and mode as returned by stat(). Filter by `S_IFMT` to avoid sending the file type (regular file, directory, symbolic link, etc.). In practice, chmod() ignores anything except the file mode, but we might as well comply with the specification. Signed-off-by: Philip Withnall <withnall@endlessm.com> 30 September 2019, 13:40:55 UTC
back to top