| Commit message (Collapse) | Author | Age | Files | Lines |
|
|
|
|
|
| |
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.
|
|
|
|
|
|
|
|
|
|
|
|
| |
Right now, these functions use the normal *xattr() and f*xattr() system calls
where possible. Were both a directory file descriptor != AT_FDCWD and a
non-empty path is specified, the file is opened with openat(O_PATH) resulting
in a file descriptor, and the *xattr() system calls are used on
"/proc/self/fd/%d" for that file descriptor. (The O_PATH file descriptor itself
is not usable in the f*xattr() syscalls right now.)
These functions should probably be system calls instead, or at least they
should be provided by glibc.
|
|
|
|
|
|
| |
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>
|
|
|
|
| |
trailing whitespace on some lines, delete!
|
|
|
|
| |
Keep build/ directory for out-of-source builds.
|
|
|
|
| |
The function char *basename(char *path) is defined in libgen.h.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| |
If /bin/sh is not a functional enough shell, configure will select a
SHELL of /bin/bash or better. But the current build helpers always
hardcode /bin/sh, so if libtool itself configures itself for /bin/bash,
things will fail when it attempts to do:
SHELL = /bin/sh
LIBTOOL = $(SHELL) .../libtool
...
eval: 1: base_compile+= -pipe: not found
...
So rather than hardcoding SHELL to /bin/sh, set it to @SHELL@ and let
configure find a good value for us.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
|
| |
Newer autotools warn when using "configure.in" as that is the old name,
and there are plans to make this fatal in the future. So rename it.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
|
|
|
|
|
|
| |
Include syscalls.h and check for __NR_setxattr being set. This fixes the
build on new and odd archs but may break on really really old machines
with out of date syscalls.h.
|
|
|
|
|
| |
additional 'security.selinux' attrs appear on selinux systems, filter
them out to get the tests to pass.
|
| |
|
| |
|
| |
|
|
|
|
| |
Contributed by John Bradshaw.
|