| Commit message (Collapse) | Author | Age | Files | Lines |
... | |
|
|
|
|
|
|
| |
Commit 315af30d0c1a198dc662a90e6e6ae2456abf2489 (Cleanup visibility of
API functions) changed to generating headers into the install path.
This means automake itself would no longer take care of uninstalling
the headers for us. Add a local hook for that to fix distcheck.
|
|
|
|
|
|
|
|
| |
These two files are largely copies of each other but using diff APIs.
Sync the minor differences between them to make `diff` more obvious.
This also fixes a bug in an error message in attr_copy_fd where it
had swapped the attribute name and the path.
|
|
|
|
|
|
|
| |
The security.evm extended attribute may only be written by the Linux
kernel. So modify xattr.conf to always skip this extended attribute.
Signed-off-by: Stefan Berger <stefanb@linux.vnet.ibm.com>
|
|
|
|
|
|
|
| |
Import visibility_hidden.m4 macro from acl and use it in configure.ac
This will enable -fvisibility CFLAG when supported by compiler.
Mark API functions with default visibility attribute.
|
|
|
|
| |
Add config.h include to every source file before all other includes.
|
| |
|
|
|
|
|
|
| |
Make the conditional easier to read.
Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
|
|
|
|
|
|
|
|
|
| |
Commit 7921157890d07858d092f4003ca4c6bae9fd2c38 removed
symbols that were part of ABI.
Reintroduce these symbols to fix the ABI breakage.
These backward compatibility symbols just use appropriate
xattr syscall wrappers provided by libc.
|
|
|
|
|
| |
As all symbols that are part of public interface are explicitly exported
with corresponding versioning, mark all remaining symbols as local.
|
|
|
|
|
| |
As all symbols that are part of public interface are expected
to be properly versioned, add versioning to attr_copy_action.
|
|
|
|
| |
Newer autoconf sometimes generates this file.
|
|
|
|
| |
walk_tree.c internal variables should not be exposed to libmisc users.
|
|
|
|
|
|
| |
The attr.5 page is part of the extended attribute system call documentation,
which has been moved into the man-pages package. Move the attr.5 page there
as well.
|
|
|
|
|
|
| |
The xattr syscalls are provided by glibc since ages, so there is no need to use
the indirect system call "syscall" anymore. This removes the need for the
<attr/xattr.h> header; use <sys/xattr.h> instead.
|
|
|
|
|
|
| |
The section 2 man pages have long since been added to the man-pages package
which documents all system calls; they were disabled in attr by default since
January 2014. Get rid of them here.
|
|
|
|
|
|
| |
Extended attributes are not accounted for in the real file size on most file
systems, not even in ext* file systems with large inodes. Remove the
associated tests.
|
|
|
|
|
| |
These tests don't do anything useful anymore on most ext4 file systemms, so
remove it.
|
|
|
|
|
|
| |
With this option, attribute values are taken as they are, without traing to
decode them. This can be thought of as the counterpart to "getfattr
--only-values".
|
|
|
|
|
|
|
| |
Change getfattr to print empty attribute values as "" (including the quotes),
0x, or 0s, depending on the encoding chosen. Fix setfattr to set empty
attribute values when the value specified is an empty string; before, an
encoded empty value like "" (including the quotes) had to be specified.
|
|
|
|
| |
Two small wording fixes.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
Mike's build-system-revamping commit 9ce21bd of January this year
accidentally dropped a crucial -include of "libattr.h". This silently
undefined the HAVE_F*ATTR macros, causing attr_copy_{fd,file}.c to think
that xattrs are not supported and to compile the functions in those
files into a 'return 0;' stub.
The code in these files uses the NLS _() macro, which was recently moved
into misc.h, which can only sensibly be included by things outside
libattr. So migrate the NLS macros into a new nls.h at the same time,
and include it from misc.h.
With these fixes in place, xattrs can be copied again.
|
| |
|
|
|
|
|
|
|
|
| |
When an attribute cannot be added to the buffer in attr_list() or attr_listf(),
we need to retry adding the same attribute on the next attempt, except when we
didn't make progress.
Reported-by: Luiz Angelo Daros de Luca <luizluca@gmail.com>
|
| |
|
|
|
|
|
| |
- <features.h> is Linux specific
- Define __THROW for non glibc based systems
|
|
|
|
| |
not off_t .. since a pretty long time.
|
|
|
|
|
|
| |
The libattr library is supposed to be LGPLv2.1+ licensed, but some of the files
were accidentally labeled as GPLv2+ licensed. Fix this and clarify some more
license headers that mix LGPLv2.1 and GPLv2.
|
|
|
|
|
|
|
|
|
|
|
| |
This fixes a bug when doing the cleanup of tests in a subdir by making
sure we chdir back to our starting point.
We also move the root test out of XFAIL and instead do the root checking
at runtime. If we are root, the test passes nicely, otherwise it marks
itself as SKIP quickly.
These are fixing issues noticed when doing the update to libacl.
|
|
|
|
|
| |
We don't want to build this, but we do want to include it in the
release, so add it to EXTRA_DIST.
|
| |
|
|
|
|
| |
Acked-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
| |
This matches what we do in all the other headers.
|
|
|
|
|
|
|
| |
Automake already provides a variable for
${includedir}/${PACKAGE_NAME}; use it.
Acked-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
|
|
| |
Normally the Linux man-pags project maintains pages for all Linux
system calls, and they've long ago added pages for these. That
means distros trying to install both hit collisions.
Add a flag so people can still enable them if they want, but default
to off since the man-pages project covers things.
|
| |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
This deletes the hand rolled build system and replaces it entirely
with autotools. The overall diffstat shows that this is a clear
win, and it makes the package build/install like every other autotool
package out there which makes the lives of distro maintainers a lot
easier.
This should also be faster by virtue of using a non-recursive build.
Things to note:
- to generate autotools:
./autogen.sh
- to see full compile output:
make V=1
- to build specific targets:
make attr getfattr ...
- to run tests:
make check
- to create a release:
make distcheck -j
Other non-developer things:
- the xattr.conf file is now installed into sysconfdir by default
- man pages are no longer compressed as this is uncommon in the
autotools world and distros don't need it anyways (they already
handle it automatically for most pakages)
- the minor # of the shared library is now based on the package
version so it'll be much bigger ... this isn't a problem, and
is actually a bugfix (older releases didn't change when they
should have)
(Again, this is all using the standard autotool targets.)
|
|
|
|
|
|
|
|
|
|
| |
Change the run program to update PATH to find the tools locally
automatically. This lets us avoid having to always build in the
tree and allows for direct running.
Also update the program to create a tempdir for each test to run
inside of. This way we can run all the tests in parallel without
randomly clobbering each other.
|
|
|
|
|
| |
This lets us autogenerate config.h using autoheader rather than
hand maintain it.
|
|
|
|
|
|
|
|
|
| |
These files haven't been updated in years. The respective upstreams
do their own thing now. Punt this code to make future cleanups easier.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
These
|
| |
|
| |
|
| |
|
|
|
|
| |
This addresses bug http://savannah.nongnu.org/bugs/?40337.
|
| |
|
| |
|
|
|
|
|
|
|
| |
The ATTR_OP_GET, ATTR_OP_SET, and ATTR_OP_REMOVE constants are not single bit
values, so use comparisons instead of bit tests to check which of those
operations to perform. (Up to now, ATTR_OP_REMOVE was wrongly detected as
ATTR_OP_GET.)
|
|
|
|
|
|
|
| |
The Makefile references the configure source file by name, so update
that after the rename.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
| |
|
|
|
|
|
|
|
| |
This makes the `make install DESTDIR=...` form work. It keeps support
for all previous forms too (like DIST_ROOT).
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
| |
When doing a static build the .lai file is not created, so do not try
to install it.
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
|