| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
|
|
|
|
|
| |
Distribute tap-driver and tap-test such that make check can run in a
disted tarball. Without this the following errors occur:
make[5]: Entering directory
'/home/sjoerd/source/libgsystem/libgsystem-2015.2/_build/sub'
/bin/bash: ../../buildutil/tap-driver.sh: No such file or directory
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
|
|
|
|
|
|
|
|
| |
Fix GISCAN by synchronizing the variable names in the .h files with that
in the .c and documentation comments and fix the documentation comments
to match the naming in the function implementation.
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
|
|
|
|
|
|
|
|
| |
Starting with systemd 200 (released 2014-02-20) libsystemd-journal is
part of libsystemd instead of a seperate helper library. Thus Check for
libsystemd instead.
Signed-off-by: Sjoerd Simons <sjoerd.simons@collabora.co.uk>
|
|
|
|
|
| |
sys/capability.h is not installed by default on Ubuntu/Debian, hence it should
be checked for before compilation.
|
| |
|
|
|
|
|
|
|
|
| |
There are a few reasons we could get EPERM such as
/proc/sys/fs/protected_hardlinks being enabled.
This was showing up using rpm-ostree with Bodhi; we haven't fully
debugged it, but suspect this patch will fix it.
|
|
|
|
| |
Found the flippin' manual.
|
| |
|
|
|
|
| |
Mostly for testing coverage.
|
| |
|
| |
|
|
|
|
|
| |
We can pull in libglnx here, and have this module become a GFile *
wrapper plus legacy code.
|
| |
|
| |
|
| |
|
|
|
|
| |
For the standard thread+fork safety reasons.
|
|
|
|
|
| |
This is a file-descriptor variant which is useful for reading from
directories and regular files (it can't work on symlinks).
|
| |
|
|
|
|
| |
This is kind of long overdue...
|
|
|
|
| |
This is a long overdue move of this function to public API.
|
|
|
|
|
| |
Now that we're encouraging use of openat(), fds are a lot more
prevalent.
|
|
|
|
|
| |
This noticeably cleans up the rm_rf() code. And also it now becomes
easy add a gs_shutil_rm_rf_at() variant.
|
|
|
|
|
|
|
|
|
|
|
| |
Using the GFileEnumerator doesn't allow using the *at system calls
such as unlinkat() very easily. These system calls are both more
performant (no need to traverse paths repeatedly) and more secure
(assuming an attacker has write access to an intervening path).
Currently, this exposes the Unix "struct dirent*" which means it's not
available to introspection, but a future API addition could add a
binding to create a GFileInfo*.
|
|
|
|
|
|
|
|
| |
We already had gs_file_open_dir_fd, but it didn't support O_NOFOLLOW,
which is quite useful.
Also add a raw function wrapping the core bits we need to opendir(),
also taking a follow boolean.
|
| |
|
|
|
|
| |
This got missed before.
|
|
|
|
| |
Associate each cleanup with its #define, it's just obviously saner.
|
| |
|
|
|
|
| |
This matches the https://wiki.gnome.org/GnomeGoals/InstalledTests spec.
|
| |
|
|
|
|
| |
Signed-off-by: Giuseppe Scrivano <gscrivan@redhat.com>
|
| |
|
| |
|
|
|
|
|
| |
Use the dynamically allocated buffer returned by realpath instead of
using PATH_MAX which is not defined on platforms like Hurd.
|
|
|
|
| |
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
| |
Signed-off-by: Thomas Haller <thaller@redhat.com>
|
|
|
|
| |
See https://github.com/hughsie/libhif/pull/2
|
|
|
|
|
| |
This is the only safe way to get xattrs for a symlink relative to a
dirfd.
|
| |
|
|
|
|
| |
For file operations, it's relevant.
|
|
|
|
|
|
|
| |
We had a g_prefix_error() for the lsetxattr() path, but not
fsetxattr(). Add one for the latter, and change the former to not use
the pathname because we always go through /proc/self/fd so it won't be
useful to show.
|
|
|
|
|
| |
This will be used in the OSTree checkout code, where we want to
mkdir() and then open it.
|
|
|
|
| |
This is a Linux-specific way to work around the missing lsetxattrat().
|
|
|
|
|
| |
Unprivileged users won't be able to copy e.g. security.selinux; let's
ignore this by default, the same way coreutils does.
|
| |
|
| |
|
|
|
|
| |
See https://mail.gnome.org/archives/desktop-devel-list/2014-February/msg00028.html
|
|
|
|
|
|
| |
Needed for g_clear_pointer().
Signed-off-by: Jiří Klimeš <jklimes@redhat.com>
|
|
|
|
| |
Hooray for rpmlint.
|
|
|
|
| |
This ensures we're not overwriting any earlier output.
|