- Jan 26, 2016
-
-
Colin Walters authored
Not sure why we were doing this...I guess people were working around it by adding their own spaces?
-
- Jan 25, 2016
-
-
Colin Walters authored
This way, one can unlock the console while still using the cleanup macro. Otherwise we miss a lot of the ergonomics of cleanup macros.
-
Colin Walters authored
Otherwise we miss a lot of the ergonomics of cleanup macros.
-
- Jan 24, 2016
-
-
Colin Walters authored
This is taken from systemd, and is really useful when one has a few known-to-be-small strings one wants to concatenate without resorting to malloc.
-
- Jan 22, 2016
-
-
Alexander Larsson authored
-
- Jan 11, 2016
-
-
Colin Walters authored
I plan to use this in rpm-ostree. Sad how many times this gets reinvented. Should probably stick a copy in `glib-unix.h` or so.
-
- Jan 03, 2016
-
-
Colin Walters authored
It's quite common to iterate over a directory recursively, only caring about the file type, but not other bits returned by `stat()`. Good file systems fill in `dt_type`, but not all do. This function papers over that in userspace conveniently.
-
- Dec 17, 2015
-
-
Alexander Larsson authored
The g_autoptr support for GString was added in 2.45.8, so we need to define it on 2.44 for it to work.
-
- Dec 11, 2015
-
-
Alexander Larsson authored
Create a temporary directory using mkdirat. https://bugzilla.gnome.org/show_bug.cgi?id=757611
-
Alexander Larsson authored
This is very useful in combination with glnx_close_fd https://bugzilla.gnome.org/show_bug.cgi?id=757611
-
- Dec 02, 2015
-
-
Colin Walters authored
-
- Dec 01, 2015
-
-
Alexander Larsson authored
-
Alexander Larsson authored
-
- Nov 23, 2015
-
-
Matthew Barnes authored
-
- Nov 06, 2015
-
-
Matthew Barnes authored
-
Matthew Barnes authored
-
- Sep 24, 2015
-
-
Alexander Larsson authored
-
- Sep 16, 2015
-
-
Matthew Barnes authored
Set PATH to something sane for a chroot'ed environment rather than relying on the user's PATH value.
-
- Aug 29, 2015
-
-
Colin Walters authored
Where we can put general functions that come in newer glib.
-
- Aug 28, 2015
-
-
Colin Walters authored
-
- Aug 24, 2015
-
-
Colin Walters authored
rpm-ostree is going through some awkwardness trying to support being run both inside and outside of a container. For now, let's drop all recursive container usage. There is still some value in readding this in the future - for example, downloading packages requires networking, but `%post` scripts do not. But we should really solve that when we return to running unprivileged or the like.
-
- Jul 28, 2015
-
-
Colin Walters authored
Trying to change the mount namespace was breaking in mock, which just uses plain chroot.
-
- Jun 15, 2015
-
-
Colin Walters authored
In Fedora rawhide, dracut switched from `/usr/sbin` to `/usr/bin`, which broke rpm-ostree's hardcoding of the path. There was no real reason to hardcode it (assume our `$PATH` is sane and secure), so in order to help support that, this change in libglnx will automatically search $PATH if the input is not absolute. (This is a sane default for a process spawning library IMO)
-
- May 09, 2015
-
-
Colin Walters authored
For OSTree.
-
- May 05, 2015
-
-
Giuseppe Scrivano authored
It can be used without initialization if condition causing a "goto error" fails before buf is initialized. Signed-off-by:
Giuseppe Scrivano <gscrivan@redhat.com>
-
Matthew Barnes authored
-
Colin Walters authored
Will be used by OSTree to lock the sysroot against concurrent manipulation. Taken from current systemd git master, tweaked to GLibify.
-
- May 04, 2015
-
-
Colin Walters authored
-
Matthew Barnes authored
GStrv, GFile, GOutputStream
-
- Apr 21, 2015
-
-
Colin Walters authored
There are some cases where we want to copy with just a filename, so let's be convenient in that case and do stat for the caller. This will be used by an ostree commit.
-
- Apr 17, 2015
-
-
Colin Walters authored
There are a lot of APIs that still only take absolute paths, such as librpm (and everything above it). I plan to use this in rpm-ostree to convert temporary directories that I'm accessing fd-relative back into absolutes until such time as fd-relative APIs are plumbed through the stack more.
-
Colin Walters authored
Doing nothing isn't super useful; if you're using e.g. rpm-ostree in Jenkins you want to see *something* from the "live tail". This is a basic line-per-change implementation. Closes: https://github.com/GNOME/libglnx/pull/6
-
- Apr 14, 2015
-
-
Colin Walters authored
For extra fun, both of these functions have different error handling schemes. `posix_fallocate` does *not* set `errno` because... I'm not sure. Maybe POSIX was trying a new function design? `loop_write` uses the systemd error handling style which returns `-errno`, so we need to set errno back so that the macro can propagate it into the `GError`.
-
Colin Walters authored
By default (with `-1) use the Unix traditional default of `0666 - umask`. But do support forcing a mode.
-
Matthew Barnes authored
mkostemp() defaults to 0600. Use 0644 instead unless a mode is explicitly provided. https://bugzilla.gnome.org/747813
-
- Apr 13, 2015
-
-
Colin Walters authored
Just noticed while inspecting the code.
-
- Apr 09, 2015
-
-
Colin Walters authored
This will be used for OSTree too.
-
Colin Walters authored
Sort of similar to `g_file_replace_contents()` but `*at()`. Will be used for further conversion of OSTree to `*at()`.
-
- Apr 08, 2015
-
-
Colin Walters authored
-
Colin Walters authored
See previous commits to drop libattr dependency.
-