mirror of
https://gitlab.gnome.org/GNOME/glib.git
synced 2025-05-31 09:50:05 +02:00
Since GNU Coreutils 9.2 (commit 110bcd28386b1f47a4cd876098acb708fdcbbb25), `du --apparent-size` (including `du --bytes`) no longer counts all kinds of files (directories, FIFOs, etc.), but only those for which `st_size` in `struct stat` is defined by POSIX, namely regular files and symlinks (and also rarely supported memory objects). This aligns the behaviour of GLib's `G_FILE_MEASURE_APPARENT_SIZE` flag with the new GNU Coreutils `du` and correct POSIX use. Note that this may be a breaking change for some uses. Link: https://lists.gnu.org/archive/html/bug-coreutils/2023-03/msg00007.html Fixes: https://gitlab.gnome.org/GNOME/glib/-/issues/2965