- Jun 28, 2016
-
-
Alexander Larsson authored
This happens a lot if you use autocleanup for lock files, and the function returns early without the lock being taken.
-
- Jun 16, 2016
-
-
Yu Qi Zhang authored
We noticed the temp files being left over in ostree when (mistakenly) trying to replace the contents of a subpath that wasn't a directory. In the future we should look at the systemd code using `O_TMPFILE` here.
-
- May 31, 2016
-
-
Colin Walters authored
I swear I tested it...
-
- May 30, 2016
-
-
Colin Walters authored
We have multiple copies growing again of this code. glibc has this API internally and uses it in multiple places, let's do the same. Closes: #14
-
- May 10, 2016
-
-
Jonathan Lebon authored
Padding in the percentage case was useless (and actually didn't work properly) since all the real estate is taken up by the text and the bar. We only need padding in the text case, in case the new string is shorter.
-
- May 03, 2016
-
-
Colin Walters authored
Migrated from libgsystem's `gs_stream_fstat()`. It's a small function but I end up using it in OSTree a fair bit.
-
- May 02, 2016
-
-
Colin Walters authored
For rpm-ostree's use we always run in a new root, so we don't want to inherit the host system's PATH. For example, NixOS uses PATH for its software namespacing, but one could be using rpm-ostree to build CentOS commits.
-
- May 01, 2016
-
-
Colin Walters authored
Not sure if it ever worked. We need to not print the bars, etc.
-
- Mar 10, 2016
-
-
Alexander Larsson authored
We're ignoring the result from the close, but it can still affect errno, which is bad if you use this in functions that sets errno, because errno can unexpectedly change after you've set it.
-
Colin Walters authored
We had this internally, just need to expose it.
-
- Feb 08, 2016
-
-
Colin Walters authored
The previous fix added the last character of text, but failed to account for the space we're adding.
-
- 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
-