summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
...
* include: add uninstall target to fix distcheckMike Frysinger2016-12-091-0/+5
| | | | | | | 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.
* attr_copy_{fd,file}: sync changes between the filesMike Frysinger2016-12-092-18/+18
| | | | | | | | 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.
* xattr.conf: do not copy security.evmStefan Berger2016-12-091-0/+1
| | | | | | | 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>
* Cleanup visibility of API functionsYury Usishchev2016-03-026-18/+84
| | | | | | | 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.
* Cleanup config.h usageYury Usishchev2016-03-0211-2/+22
| | | | Add config.h include to every source file before all other includes.
* Use stdint types consistentlyFelix Janda2016-01-132-6/+8
|
* walk_tree_rec: Add parentheses to clarify codeAndreas Gruenbacher2015-12-261-2/+2
| | | | | | Make the conditional easier to read. Signed-off-by: Andreas Gruenbacher <agruenba@redhat.com>
* Reintroduce symbols that used to be syscall wrappersDmitry V. Levin2015-09-223-1/+106
| | | | | | | | | 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.
* Do not export symbols that are not supposed to be exportedDmitry V. Levin2015-09-221-0/+3
| | | | | As all symbols that are part of public interface are explicitly exported with corresponding versioning, mark all remaining symbols as local.
* Add explicit symbol versioning for attr_copy_actionDmitry V. Levin2015-09-221-0/+5
| | | | | As all symbols that are part of public interface are expected to be properly versioned, add versioning to attr_copy_action.
* ignore configure.linenoMike Frysinger2015-09-211-0/+1
| | | | Newer autoconf sometimes generates this file.
* walk_tree: mark internal variables as staticDmitry V. Levin2015-09-211-3/+3
| | | | walk_tree.c internal variables should not be exposed to libmisc users.
* Remove the attr.5 man page (moved to man-pages)Andreas Gruenbacher2015-05-073-156/+0
| | | | | | 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.
* Remove <attr/xattr.h> and the syscall wrappersAndreas Gruenbacher2015-04-1511-198/+16
| | | | | | 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.
* Remove the section 2 man pagesAndreas Gruenbacher2015-04-157-568/+0
| | | | | | 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.
* Remove outdated tests from test/attr.testAndreas Gruenbacher2015-03-031-4/+0
| | | | | | 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.
* Remove test/ext/fs.testAndreas Gruenbacher2015-03-032-72/+1
| | | | | These tests don't do anything useful anymore on most ext4 file systemms, so remove it.
* Add setfattr --raw optionAndreas Gruenbacher2015-02-202-1/+13
| | | | | | 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".
* Properly set and report empty attribute valuesAndreas Gruenbacher2015-02-203-9/+21
| | | | | | | 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.
* Man pages: Minor fixesAndreas Gruenbacher2015-02-202-2/+2
| | | | Two small wording fixes.
* build: unbreak attr_copy_fd() and attr_copy_file().Nick Alcock2014-10-206-9/+14
| | | | | | | | | | | | | | | 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.
* attr: Don't report a NULL attribute name when -l (list) failsAndreas Gruenbacher2014-07-081-2/+2
|
* attr_list / attr_listf: Fix cursor off-by-one errorAndreas Gruenbacher2014-07-081-2/+10
| | | | | | | | 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>
* Portability fix: <alloca.h> is Linux specificEmmanuel Dreyfus2014-06-301-0/+2
|
* Portability fixesEmmanuel Dreyfus2014-06-301-0/+11
| | | | | - <features.h> is Linux specific - Define __THROW for non glibc based systems
* telldir return value and seekdir second parameters are of type longCristian Rodríguez2014-06-101-1/+1
| | | | not off_t .. since a pretty long time.
* License fixesAndreas Gruenbacher2014-03-044-10/+10
| | | | | | 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.
* test: fix cleanup & running as rootMike Frysinger2014-01-134-4/+20
| | | | | | | | | | | 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.
* include examples/ in dist tarballMike Frysinger2014-01-132-0/+4
| | | | | We don't want to build this, but we do want to include it in the release, so add it to EXTRA_DIST.
* build: ship a pkgconfig file for libattrJan Engelhardt2014-01-134-0/+15
|
* build: make use of an aux-dir to stow away helper scriptsJan Engelhardt2014-01-132-14/+3
| | | | Acked-by: Mike Frysinger <vapier@gentoo.org>
* avoid glibc-specific DECLS definesMike Frysinger2014-01-131-3/+6
| | | | This matches what we do in all the other headers.
* build: drop attrincludedir, use pkgincludedirJan Engelhardt2014-01-132-4/+2
| | | | | | | Automake already provides a variable for ${includedir}/${PACKAGE_NAME}; use it. Acked-by: Mike Frysinger <vapier@gentoo.org>
* disable installation of man(2) pages by defaultMike Frysinger2014-01-092-0/+7
| | | | | | | | | 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.
* po: regenerate files after moveMike Frysinger2014-01-098-473/+594
|
* modernize build systemMike Frysinger2014-01-0955-2014/+290
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.)
* test: make running parallel/out-of-tree safeMike Frysinger2014-01-093-22/+46
| | | | | | | | | | 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.
* move gettext logic into misc.hMike Frysinger2014-01-092-1/+14
| | | | | This lets us autogenerate config.h using autoheader rather than hand maintain it.
* punt debian/rpm packaging logicMike Frysinger2014-01-0917-782/+5
| | | | | | | | | 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
* Suppress deprecation warnings when building attr and libattrAndreas Gruenbacher2014-01-092-0/+4
|
* Add a default /etc/xattr.conf fileAndreas Gruenbacher2013-11-183-0/+25
|
* Mark the Irix compatibility functions as deprecatedAndreas Gruenbacher2013-11-181-10/+20
|
* Make attr_get and attr_getf behave as described in the man pageAndreas Gruenbacher2013-11-181-4/+19
| | | | This addresses bug http://savannah.nongnu.org/bugs/?40337.
* Use autoreconf rather than autoconf to regenerate the files.Fabrice Bauzac2013-08-271-1/+1
|
* .gitignore: ignore *~ and config.h.in.Fabrice Bauzac2013-08-271-0/+2
|
* Fix ATTR_OP_REMOVE operation in attr_multi()Andreas Gruenbacher2013-05-281-6/+6
| | | | | | | 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.)
* Makefile: rename configure.in to configure.acMike Frysinger2013-05-201-1/+1
| | | | | | | The Makefile references the configure source file by name, so update that after the rename. Signed-off-by: Mike Frysinger <vapier@gentoo.org>
* VERSION: 2.4.46 -> 2.4.47v2.4.47Brandon Philips2013-05-181-1/+1
|
* attr: respect DESTDIR when installingMike Frysinger2013-05-181-0/+2
| | | | | | | 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>
* attr: Fix static build installationThomas Petazzoni2013-05-181-2/+1
| | | | | | | 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>